From ce42bcaad90b9c445abf16d1aeaecbd837f86054 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 28 Feb 2015 15:08:57 +0000 Subject: Icon related fixes in the OSM plugin - 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 --- underlays/osm/ikiwiki/osm.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'underlays/osm/ikiwiki/osm.js') 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", { -- cgit v1.2.3