summaryrefslogtreecommitdiff
path: root/web/js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js')
-rw-r--r--web/js/eventmap.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/web/js/eventmap.js b/web/js/eventmap.js
index e974cb3..2d9a4e0 100644
--- a/web/js/eventmap.js
+++ b/web/js/eventmap.js
@@ -558,11 +558,14 @@ $(function() {
layer_path = 'images/tiles/' + layer_info.name
+ '/{z}/{x}/{y}.png';
-
+ var layer_opacity = layer_info.opacity;
+ if (layer_opacity === undefined)
+ layer_opacity = 1.0;
base_layer = L.tileLayer(layer_path, {
noWrap: true,
continuousWorld: true,
- maxZoom: layer_info.max_zoom
+ maxZoom: layer_info.max_zoom,
+ opacity: layer_opacity
});
drawing_layer = new L.FeatureGroup();