// clone object to not modify data in store, using json parse instead of spread operator that modifies data, for instance when navigating to basemap administration page
// For each basemap from the server, compare the length and id values of the layers
for (constserverBasemapofbasemapFromServer){
// loop over basemaps from localStorage and check if layers id, queryable & opacity setting match with the layers from the server
// loop over basemaps from localStorage and check if layers id & queryable setting match with the layers from the server
// we don't check opacity since it would detect a change and reinit each time the user set it. It would need to be stored separatly like current basemap index