diff --git a/src/plugins/lib/libhtmlconst.py b/src/plugins/lib/libhtmlconst.py index d620f0ee8..a89f16a90 100644 --- a/src/plugins/lib/libhtmlconst.py +++ b/src/plugins/lib/libhtmlconst.py @@ -136,10 +136,9 @@ function initialize() { var zoom =16; map.setCenter(lonLat, zoom); - var markers = new OpenLayers.Layer.Markers( "Markers" ); + var markers = new OpenLayers.Layer.Markers("Markers"); markers.addMarker(new OpenLayers.Marker(lonLat)); - - map.addLayers([osm, markers]); + map.addLayer(markers); // add overview control map.addControl(new OpenLayers.Control.OverviewMap());