extend default zoom to 19, OSM's maximum, simplify code

master
Antoine Beaupré 2012-08-11 11:14:23 -04:00
parent acc4d7d7d6
commit ac775ef8e7
1 changed files with 2 additions and 2 deletions

View File

@ -38,11 +38,11 @@ function mapsetup(divname, options) {
projection: "EPSG:900913",
units: "m",
maxResolution: 156543.0339,
numZoomLevels: 18
numZoomLevels: 19
});
if (options.mapurl) {
var newLayer = new OpenLayers.Layer.OSM("Local Tiles", options.mapurl, {numZoomLevels: 19, isBaseLayer: true});
var newLayer = new OpenLayers.Layer.OSM("Local Tiles", options.mapurl);
map.addLayer(newLayer);
} else {
map.addLayer(new OpenLayers.Layer.OSM());