diff options
author | Markus Koch <markus@notsyncing.net> | 2020-04-25 13:33:34 +0200 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2020-04-25 13:33:34 +0200 |
commit | a4c7833d87a930ac00ca1df361fef02edfad67ac (patch) | |
tree | 6573319e50b9e3ed69d605e6876190e6dd1be7e1 /htdocs | |
parent | 6ceae7d7c21197af3ffe73582e7f931507938596 (diff) | |
download | lifomapserver-a4c7833d87a930ac00ca1df361fef02edfad67ac.tar.gz lifomapserver-a4c7833d87a930ac00ca1df361fef02edfad67ac.tar.bz2 lifomapserver-a4c7833d87a930ac00ca1df361fef02edfad67ac.zip |
Clean up
Diffstat (limited to 'htdocs')
-rw-r--r-- | htdocs/mapscript.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/htdocs/mapscript.js b/htdocs/mapscript.js index 73c7fb0..d83b057 100644 --- a/htdocs/mapscript.js +++ b/htdocs/mapscript.js @@ -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}); } }); } |