From 8fb42f42f495095ca32a569401df21f089f0e40c Mon Sep 17 00:00:00 2001 From: Geneviève Bastien Date: Mon, 6 Aug 2012 23:00:31 -0400 Subject: OSM plugin: new config option to specify the url to fetch maps from --- underlays/osm/ikiwiki/osm.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'underlays') diff --git a/underlays/osm/ikiwiki/osm.js b/underlays/osm/ikiwiki/osm.js index d7e3d53f4..644d4b573 100644 --- a/underlays/osm/ikiwiki/osm.js +++ b/underlays/osm/ikiwiki/osm.js @@ -37,8 +37,13 @@ function mapsetup(divname, options) { 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, -- cgit v1.2.3