projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acc4d7d
)
extend default zoom to 19, OSM's maximum, simplify code
author
Antoine Beaupré
<anarcat@koumbit.org>
Sat, 11 Aug 2012 15:14:23 +0000
(11:14 -0400)
committer
Antoine Beaupré
<anarcat@koumbit.org>
Sat, 25 Aug 2012 12:20:30 +0000
(08:20 -0400)
underlays/osm/ikiwiki/osm.js
patch
|
blob
|
history
diff --git
a/underlays/osm/ikiwiki/osm.js
b/underlays/osm/ikiwiki/osm.js
index 9269bd8993250581b598cfd49abcef903ac04896..c41aeeb1f37c37b64a16832ce1bc8e0e0bc615b3 100644
(file)
--- 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: 1
8
+ numZoomLevels: 1
9
});
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());