From 87f54caa2618bbf873ac87b5b7bca04f7969d603 Mon Sep 17 00:00:00 2001 From: Hakim Cassimally Date: Mon, 17 Mar 2014 17:34:13 +0000 Subject: Allow cobrands to set their own path to pin files New cobrand function of pin_path that sets the path to where the image files for pins are located. Defaults to /i This still means they need to use the same file names but they can at least put those in a cobrand directory rather than having to overwrite the files in /i or fudge it with pin_colour --- web/js/map-OpenLayers.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web/js/map-OpenLayers.js') diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index f7a46ee68..49f4257eb 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -122,24 +122,24 @@ function fixmystreet_onload() { }); pin_layer_style_map.addUniqueValueRules('default', 'size', { 'normal': { - externalGraphic: "/i/pin-${colour}.png", + externalGraphic: fixmystreet.pin_prefix + "pin-${colour}.png", graphicWidth: 48, graphicHeight: 64, graphicXOffset: -24, graphicYOffset: -64, - backgroundGraphic: "/i/pin-shadow.png", + backgroundGraphic: fixmystreet.pin_prefix + "pin-shadow.png", backgroundWidth: 60, backgroundHeight: 30, backgroundXOffset: -7, backgroundYOffset: -30 }, 'big': { - externalGraphic: "/i/pin-${colour}-big.png", + externalGraphic: fixmystreet.pin_prefix + "pin-${colour}-big.png", graphicWidth: 78, graphicHeight: 105, graphicXOffset: -39, graphicYOffset: -105, - backgroundGraphic: "/i/pin-shadow-big.png", + backgroundGraphic: fixmystreet.pin_prefix + "pin-shadow-big.png", backgroundWidth: 88, backgroundHeight: 40, backgroundXOffset: -10, -- cgit v1.2.3