Clean up
This commit is contained in:
parent
6ceae7d7c2
commit
a4c7833d87
@ -58,7 +58,7 @@ var style_outlines = {
|
|||||||
radius: 8,
|
radius: 8,
|
||||||
fillColor: "#ff7800",
|
fillColor: "#ff7800",
|
||||||
color: "black",
|
color: "black",
|
||||||
opacity: 1,
|
opacity: 1.0,
|
||||||
fillOpacity: 0.5
|
fillOpacity: 0.5
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -472,15 +472,15 @@ function update_outline_visibility() {
|
|||||||
zoom = mymap.getZoom();
|
zoom = mymap.getZoom();
|
||||||
mymap.eachLayer( function(layer) {
|
mymap.eachLayer( function(layer) {
|
||||||
if ( layer.myTag && layer.myTag === "outline") {
|
if ( layer.myTag && layer.myTag === "outline") {
|
||||||
var opacity;
|
var fillOpacity;
|
||||||
if (zoom <= polyconf_show_cities)
|
if (zoom <= polyconf_show_cities)
|
||||||
opacity = 0.5;
|
fillOpacity = 0.5;
|
||||||
//else if (zoom == polyconf_show_cities + 1)
|
//else if (zoom == polyconf_show_cities + 1)
|
||||||
// opacity = 0.2;
|
// opacity = 0.2;
|
||||||
else
|
else
|
||||||
opacity = 0.0;
|
fillOpacity = 0.0;
|
||||||
|
|
||||||
layer.setStyle({fillOpacity: opacity});
|
layer.setStyle({fillOpacity: fillOpacity});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user