add a way to add arbitrary openlayers to the osm plugin without hacking at the code

master
https://id.koumbit.net/anarcat 2012-08-24 16:06:17 -04:00 committed by admin
parent e57dd86a65
commit 4687d5bf68
1 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,3 @@
[[!template id=gitbranch branch=anarcat/master author="[[anarcat]]"]]
I got tired of hacking at the osm.pm every time I wanted to change the layers, so I made it so the layers can be changed in the .setup file. In my master branch, there are now two new configuration settings: `osm_layers` and `osm_layers_order` which replace the hackish `osm_mapurl`. The variables are a hash and an array that allow the operator to define the list of URLs to be loaded as layers and also to change the order of layers. -- [[users/anarcat]]