diff options
author | Antoine Beaupré <anarcat@koumbit.org> | 2012-08-11 11:14:23 -0400 |
---|---|---|
committer | Antoine Beaupré <anarcat@koumbit.org> | 2012-08-25 08:20:30 -0400 |
commit | ac775ef8e72170102f8db94dc56c6add861234ed (patch) | |
tree | a8e69a3b20f88269e38663b16440c09ac85b8f0a /underlays | |
parent | acc4d7d7d65ed9519fa9b5fca7c878f3e9a31451 (diff) | |
download | ikiwiki-ac775ef8e72170102f8db94dc56c6add861234ed.tar ikiwiki-ac775ef8e72170102f8db94dc56c6add861234ed.tar.gz |
extend default zoom to 19, OSM's maximum, simplify code
Diffstat (limited to 'underlays')
-rw-r--r-- | underlays/osm/ikiwiki/osm.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/underlays/osm/ikiwiki/osm.js b/underlays/osm/ikiwiki/osm.js index 9269bd899..c41aeeb1f 100644 --- a/underlays/osm/ikiwiki/osm.js +++ b/underlays/osm/ikiwiki/osm.js @@ -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()); |