var osmarender = new OpenLayers.Layer.OSM.Osmarender("Osmarender", { displayOutsideMaxExtent: true });
map.addLayer(osmarender);
var osmarender = new OpenLayers.Layer.OSM.Osmarender("Osmarender", { displayOutsideMaxExtent: true });
map.addLayer(osmarender);
var numZoomLevels = Math.max(mapnik.numZoomLevels, osmarender.numZoomLevels);
markers = new OpenLayers.Layer.Markers("Markers", {
var numZoomLevels = Math.max(mapnik.numZoomLevels, osmarender.numZoomLevels);
markers = new OpenLayers.Layer.Markers("Markers", {
maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508),
maxResolution: 156543,
units: "m",
maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508),
maxResolution: 156543,
units: "m",
var marker = new OpenLayers.Marker(position, icon);
markers.addMarker(marker);
var marker = new OpenLayers.Marker(position, icon);
markers.addMarker(marker);
if (description) {
marker.events.register("click", marker, function() { openMapPopup(marker, description) });
if (description) {
marker.events.register("click", marker, function() { openMapPopup(marker, description) });