Remove the osmarender map layer

This commit is contained in:
Tom Hughes 2012-03-01 09:45:41 +00:00
parent ec0c1dfd47
commit acbd254e4a
2 changed files with 1 additions and 13 deletions

View file

@ -33,15 +33,6 @@ function createMap(divName, options) {
});
map.addLayer(mapnik);
var osmarender = new OpenLayers.Layer.OSM.Osmarender(i18n("javascripts.map.base.osmarender"), {
attribution: "",
keyid: "osmarender",
displayOutsideMaxExtent: true,
wrapDateLine: true,
layerCode: "O"
});
map.addLayer(osmarender);
var cyclemap = new OpenLayers.Layer.OSM.CycleMap(i18n("javascripts.map.base.cycle_map"), {
attribution: "Tiles courtesy of <a href='http://www.opencyclemap.org/' target='_blank'>Andy Allan</a>",
keyid: "cyclemap",
@ -75,11 +66,9 @@ function createMap(divName, options) {
});
map.addLayer(mapquest);
var numZoomLevels = Math.max(mapnik.numZoomLevels, osmarender.numZoomLevels);
markers = new OpenLayers.Layer.Markers("Markers", {
displayInLayerSwitcher: false,
numZoomLevels: numZoomLevels,
numZoomLevels: 20,
maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508),
maxResolution: 156543,
units: "m",