diff options
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/config.js-example | 11 | ||||
-rw-r--r-- | www/js/map-OpenLayers.js | 8 |
2 files changed, 14 insertions, 5 deletions
diff --git a/www/js/config.js-example b/www/js/config.js-example index aa9296b..2fceda7 100644 --- a/www/js/config.js-example +++ b/www/js/config.js-example @@ -34,7 +34,16 @@ var CONFIG = { DEBUG: 0, // Bing Maps API key if needed - BING_MAPS_API_KEY: '' + BING_MAPS_API_KEY: '', + + PINS: { + location: { + image: 'images/pin@x2.png', + background: 'images/pin_shadow@x2.png', + image_svg: 'images/pin.svg', + background_svg: 'images/pin_shadow.svg' + } + } }; diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js index 58bace6..d458641 100644 --- a/www/js/map-OpenLayers.js +++ b/www/js/map-OpenLayers.js @@ -65,13 +65,13 @@ function fixmystreet_onload() { backgroundGraphicZIndex: 10 }) }); - var location_img = 'images/pin@x2.png'; - var location_bg_img = 'images/pin_shadow@x2.png'; + var location_img = CONFIG.PINS.location.image; + var location_bg_img = CONFIG.PINS.location.background; if ( typeof device !== 'undefined' && ( (device.platform == 'Android' && parseInt(device.version, 10) > 2) || (device.platform !== 'Android') ) ) { - location_img = 'images/pin.svg'; - location_bg_img = 'images/pin_shadow.svg'; + location_img = CONFIG.PINS.location.image_svg; + location_bg_img = CONFIG.PINS.location.background_svg; } pin_layer_style_map.addUniqueValueRules('default', 'size', { |