var markers;
var popup;
+OpenLayers._getScriptLocation = function () {
+ return "/openlayers/";
+}
+
function createMap(divName) {
map = new OpenLayers.Map(divName);
var osmarender = new OpenLayers.Layer.OSM.Osmarender("Osmarender", { displayOutsideMaxExtent: true });
map.addLayer(osmarender);
+ var maplint = new OpenLayers.Layer.OSM.Maplint("Maplint", { displayOutsideMaxExtent: true });
+ map.addLayer(maplint);
+
var numZoomLevels = Math.max(mapnik.numZoomLevels, osmarender.numZoomLevels);
- markers = new OpenLayers.Layer.Markers("Markers", { visibility: false, numZoomLevels: numZoomLevels });
+ markers = new OpenLayers.Layer.Markers("Markers", {
+ displayInLayerSwitcher: false, numZoomLevels: numZoomLevels,
+ maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508),
+ maxResolution: 156543,
+ units: "m",
+ projection: "EPSG:41001"
+ });
map.addLayer(markers);
map.addControl(new OpenLayers.Control.LayerSwitcher());
var marker = new OpenLayers.Marker(position, icon);
markers.addMarker(marker);
- markers.setVisibility(true);
if (description) {
marker.events.register("click", marker, function() { openMapPopup(marker, description) });