From 880997c7da53b2d4b1718326c48ced5f894e5a7f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 30 Dec 2007 17:27:47 +0000 Subject: [PATCH 1/1] Don't show the marker layer in the layer switcher. --- public/javascripts/map.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) }); -- 2.43.2