From: Tom Hughes Date: Sun, 30 Dec 2007 17:27:47 +0000 (+0000) Subject: Don't show the marker layer in the layer switcher. X-Git-Tag: live~7992 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/880997c7da53b2d4b1718326c48ced5f894e5a7f Don't show the marker layer in the layer switcher. --- diff --git a/public/javascripts/map.js b/public/javascripts/map.js index 729cd78ff..4a5cd844b 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -17,7 +17,7 @@ function createMap(divName) { var numZoomLevels = Math.max(mapnik.numZoomLevels, osmarender.numZoomLevels); markers = new OpenLayers.Layer.Markers("Markers", { - visibility: false, numZoomLevels: numZoomLevels, + displayInLayerSwitcher: false, numZoomLevels: numZoomLevels, maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508), maxResolution: 156543, units: "m", @@ -43,7 +43,6 @@ function addMarkerToMap(position, icon, description) { var marker = new OpenLayers.Marker(position, icon); markers.addMarker(marker); - markers.setVisibility(true); if (description) { marker.events.register("click", marker, function() { openMapPopup(marker, description) });