diff options
author | Dave Arter <davea@mysociety.org> | 2017-03-03 17:10:32 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2017-06-22 16:32:07 +0100 |
commit | f29bbfaff87a505c2b23b2e3b020b9483319f1ea (patch) | |
tree | 6715815ed9e0d24d218953065af5fbc18533176a /www/js/map-OpenLayers.js | |
parent | 88b724b8bc7aa4932c1ddc03c580152dc6aaf492 (diff) |
[CuidoMiCiudad] Add cobrand
This is the companion cobrand for www.cuidomiciudad.do.
Whilst primarily providing the templates and styling for the cobrand, this
commit also:
- gettext-merge to call msgmerge with --no-wrap, matching the fixmystreet code
- Allows localisation of several templates and UI components e.g. back buttons:
- The back buttons were automatically being generated by jQuery Mobile,
which wasn’t using the correct localisation of ‘Back’. Adding them to the
DOM explicitly with the correct translation ensures they appear as they
should.
- Adds a plugin for overriding the iOS display name
- Add a plugin for changing the app’s language easily
- Makes it easier for cobrands to customise pin icons on the map (CONFIG.PINS)
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r-- | www/js/map-OpenLayers.js | 8 |
1 files changed, 4 insertions, 4 deletions
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', { |