Tweak layer levels

This commit is contained in:
Grant Slater 2013-08-08 14:46:51 +01:00 committed by Tom Hughes
parent b8938ea15a
commit 0aa32990d5
3 changed files with 50 additions and 49 deletions

View file

@ -14,7 +14,8 @@ L.OSM.TileLayer = L.TileLayer.extend({
L.OSM.Mapnik = L.OSM.TileLayer.extend({
options: {
url: 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
url: 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
maxZoom: 19
}
});

View file

@ -19,7 +19,7 @@ OpenLayers.Layer.OSM.Mapnik = OpenLayers.Class(OpenLayers.Layer.OSM, {
"http://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
];
options = OpenLayers.Util.extend({
numZoomLevels: 19,
numZoomLevels: 20,
attribution: "&copy; <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors",
buffer: 0,
transitionEffect: "resize"