This commit is contained in:
Markus Koch 2020-04-25 13:33:34 +02:00
parent 6ceae7d7c2
commit a4c7833d87

View File

@ -58,7 +58,7 @@ var style_outlines = {
radius: 8,
fillColor: "#ff7800",
color: "black",
opacity: 1,
opacity: 1.0,
fillOpacity: 0.5
};
@ -472,15 +472,15 @@ function update_outline_visibility() {
zoom = mymap.getZoom();
mymap.eachLayer( function(layer) {
if ( layer.myTag && layer.myTag === "outline") {
var opacity;
var fillOpacity;
if (zoom <= polyconf_show_cities)
opacity = 0.5;
fillOpacity = 0.5;
//else if (zoom == polyconf_show_cities + 1)
// opacity = 0.2;
else
opacity = 0.0;
fillOpacity = 0.0;
layer.setStyle({fillOpacity: opacity});
layer.setStyle({fillOpacity: fillOpacity});
}
});
}