Add numZoomLevels to the map.
This commit is contained in:
parent
66fcecab91
commit
97a4e25f90
1 changed files with 2 additions and 1 deletions
|
@ -17,8 +17,9 @@ function createMap(divName) {
|
||||||
new OpenLayers.Control.PanZoomBar(),
|
new OpenLayers.Control.PanZoomBar(),
|
||||||
new OpenLayers.Control.ScaleLine()
|
new OpenLayers.Control.ScaleLine()
|
||||||
],
|
],
|
||||||
|
units: "m",
|
||||||
maxResolution: 156543,
|
maxResolution: 156543,
|
||||||
units: "m"
|
numZoomLevels: 20
|
||||||
});
|
});
|
||||||
|
|
||||||
var mapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik", {
|
var mapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik", {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue