projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OSM plugin: new config option to specify the url to fetch maps from
[ikiwiki.git]
/
underlays
/
osm
/
ikiwiki
/
osm.js
diff --git
a/underlays/osm/ikiwiki/osm.js
b/underlays/osm/ikiwiki/osm.js
index d7e3d53f42e7c832423d21ea6b82b1305ddec22d..644d4b57381a045f86e7c88029630c13ee266ba2 100644
(file)
--- a/
underlays/osm/ikiwiki/osm.js
+++ b/
underlays/osm/ikiwiki/osm.js
@@
-37,8
+37,13
@@
function mapsetup(divname, options) {
numZoomLevels: 18
});
numZoomLevels: 18
});
+ if (options.mapurl) {
+ var newLayer = new OpenLayers.Layer.OSM("Local Tiles", options.mapurl, {numZoomLevels: 19, isBaseLayer: true});
+ map.addLayer(newLayer);
+ } else {
+ map.addLayer(new OpenLayers.Layer.OSM());
+ }
- map.addLayer(new OpenLayers.Layer.OSM());
if (options.format == 'CSV') {
pois = new OpenLayers.Layer.Text( "CSV",
{ location: options.csvurl,
if (options.format == 'CSV') {
pois = new OpenLayers.Layer.Text( "CSV",
{ location: options.csvurl,