aboutsummaryrefslogtreecommitdiff
path: root/underlays/osm/ikiwiki/osm.js
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2015-02-28 15:08:57 +0000
committerChristopher Baines <mail@cbaines.net>2015-02-28 15:08:57 +0000
commit43b44dbbda102ff0e7f00693c3a80c7af10f2a7e (patch)
treea195078cebcd080db72972c430157a237df4d0fd /underlays/osm/ikiwiki/osm.js
parent0b10b34c7fdbfc6baa573cddad991443b4065118 (diff)
downloadikiwiki-43b44dbbda102ff0e7f00693c3a80c7af10f2a7e.tar
ikiwiki-43b44dbbda102ff0e7f00693c3a80c7af10f2a7e.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/osm/ikiwiki/osm.js')
-rw-r--r--underlays/osm/ikiwiki/osm.js6
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", {