Don't show the marker layer in the layer switcher.

This commit is contained in:
Tom Hughes 2007-12-30 17:27:47 +00:00
parent 64653788db
commit 880997c7da

View file

@ -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) });