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>2017-10-31 20:32:45 +0000
commitce42bcaad90b9c445abf16d1aeaecbd837f86054 (patch)
treed98d8f3e87a14736faa42eebe56aa015722fc4d3 /underlays/osm/ikiwiki/osm.js
parent32592cf4f72fb8187904364d8c15e783dedc9c33 (diff)
downloadikiwiki-ce42bcaad90b9c445abf16d1aeaecbd837f86054.tar
ikiwiki-ce42bcaad90b9c445abf16d1aeaecbd837f86054.tar.gz
Icon related fixes in the OSM pluginosm-icon-fixes-rebased
- 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", {