Skip to content

Commit

Permalink
I. #32 cleaning up layering bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dcdenu4 committed Oct 4, 2021
1 parent f4b1c42 commit 9046c8a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions map-viewer/src/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,8 @@ const Map = () => {
console.log("change scale vis lay: ", visibleLayers);
mapLayers.forEach((layer) => {
if(layer.scaleID === scaleResult && currentServices.includes(layer.serviceType)) {
console.log("change scale show: ", layer.layerID);
visibleLayersUpdate[layer.serviceType] = layer;
visibleVar = 'visible';
//map.setLayoutProperty(layer.layerID, 'visibility', visibleVar);
}
// This is the case for coastal protection. Show the same output across
// scales
Expand Down Expand Up @@ -726,13 +724,9 @@ const Map = () => {

const changeLayerOrder = (servicesSorted) => {
console.log("change order");
// Reverse the sorted services to start with the layers in the back
//const reversedServices = servicesSorted.slice().reverse();
//console.log("change order rev serv: ", reversedServices);
console.log("change order serv: ", servicesSorted);
console.log("change order vis lay: ", visibleLayers);
const firstSymbolId = getMapStyleSymbolId(map);
//const zIndex = [firstSymbolId];
let zIndex = [];
if(basemapId !== 'satellite-v9') {
zIndex = [firstSymbolId];
Expand Down

0 comments on commit 9046c8a

Please sign in to comment.