diff --git a/htdocs/map-leaflet.html b/htdocs/map-leaflet.html index 833e370e..1e24bfff 100644 --- a/htdocs/map-leaflet.html +++ b/htdocs/map-leaflet.html @@ -18,6 +18,7 @@

Map

+

Colors

' + mel.name + '').on('change', function (e) { + if (e.target.checked) { + map.addLayer(mel.layer); + } else { + if (map.hasLayer(mel.layer)) + map.removeLayer(mel.layer); + } + }) + ); + }); // Create map legend selectors self.setupLegendFilters(layerControl.legend);