diff options
author | Christopher Baines <mail@cbaines.net> | 2015-02-28 15:08:57 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2015-02-28 15:08:57 +0000 |
commit | 43b44dbbda102ff0e7f00693c3a80c7af10f2a7e (patch) | |
tree | a195078cebcd080db72972c430157a237df4d0fd /underlays | |
parent | 0b10b34c7fdbfc6baa573cddad991443b4065118 (diff) | |
download | ikiwiki-osm-icon-fixes.tar ikiwiki-osm-icon-fixes.tar.gz |
Icon related fixes in the OSM pluginosm-icon-fixes
- Use the icon parameter to the waypoint directive
- Fix the KML output to handle different icons for waypoints with the same tag.
This might cause breakage in wiki's using Ikiwiki if they were depending on
the existing style format
Diffstat (limited to 'underlays')
-rw-r--r-- | underlays/osm/ikiwiki/osm.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/underlays/osm/ikiwiki/osm.js b/underlays/osm/ikiwiki/osm.js index 37e588f7b..fe10b5ad2 100644 --- a/underlays/osm/ikiwiki/osm.js +++ b/underlays/osm/ikiwiki/osm.js @@ -86,7 +86,11 @@ function mapsetup(divname, options) { format: new OpenLayers.Format.GeoJSON() }), strategies: [new OpenLayers.Strategy.Fixed()], - projection: new OpenLayers.Projection("EPSG:4326") + projection: new OpenLayers.Projection("EPSG:4326"), + styleMap: new OpenLayers.StyleMap({ + pointRadius: 16, + externalGraphic: "${icon}" + }) }); } else { pois = new OpenLayers.Layer.Vector("KML", { |