]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/custom_location_for_openlayers.mdwn
add a way to add arbitrary openlayers to the osm plugin without hacking at the code
[ikiwiki.git] / doc / todo / custom_location_for_openlayers.mdwn
1 In the [[plugins/osm]], we use an absolute URL to download the OpenLayers.js script file. This has two downsides:
2
3  1. if the wiki is behind HTTPS, this will create a nasty SSL warning in the browser and we don't want that
4  2. if we want the map to work offline, we need to load the js locally
5
6 For those reasons, I think the location of that script should be customizable. --[[anarcat]]
7
8 [[!template  id=gitbranch branch=anarcat/master author="[[anarcat]]"]]
9
10 There is now a [[patch]] for this, thanks to Genevieve, available in my master branch.
11
12 Note that there's an update to the patch in my master branch, that allows changing the URL for tiles too.