diff --git a/docs/directory_structure.md b/docs/directory_structure.md index a8b8955d55..d318fadf6a 100644 --- a/docs/directory_structure.md +++ b/docs/directory_structure.md @@ -297,7 +297,7 @@ you're doing is [customising your installation](/customising).
images
Images, including navigation icons and sprites, used by the default site (and hence
- available to other cobrands too) — for example pin-green.png
+ available to other cobrands too) — for example pins/green/pin.png
is the green pin used on most cobrand's maps.
- + [% text %]
diff --git a/templates/web/bromley/report/banner.html b/templates/web/bromley/report/banner.html index 63771ea3b7..d88ffd4759 100644 --- a/templates/web/bromley/report/banner.html +++ b/templates/web/bromley/report/banner.html @@ -3,7 +3,7 @@ [% BLOCK banner %] diff --git a/templates/web/fixmystreet-uk-councils/report/banner.html b/templates/web/fixmystreet-uk-councils/report/banner.html index 013490842d..ccd5927897 100644 --- a/templates/web/fixmystreet-uk-councils/report/banner.html +++ b/templates/web/fixmystreet-uk-councils/report/banner.html @@ -3,7 +3,7 @@ [% BLOCK banner %] diff --git a/templates/web/fixmystreet.com/report/banner.html b/templates/web/fixmystreet.com/report/banner.html index 5eeabe2ac7..9efc0ac69d 100644 --- a/templates/web/fixmystreet.com/report/banner.html +++ b/templates/web/fixmystreet.com/report/banner.html @@ -3,7 +3,7 @@ [% BLOCK banner %] diff --git a/templates/web/shropshire/footer_extra_js.html b/templates/web/shropshire/footer_extra_js.html index 88fc006e76..12a42c0d24 100644 --- a/templates/web/shropshire/footer_extra_js.html +++ b/templates/web/shropshire/footer_extra_js.html @@ -1 +1 @@ -[% PROCESS 'footer_extra_js_base.html' highways=1 validation=1 %] +[% PROCESS 'footer_extra_js_base.html' highways=1 validation=1 roadworks=1 %] diff --git a/web/cobrands/brent/_variables.scss b/web/cobrands/brent/_variables.scss index 233bf1ede1..424f9544d6 100644 --- a/web/cobrands/brent/_variables.scss +++ b/web/cobrands/brent/_variables.scss @@ -70,8 +70,6 @@ $nav_hover_background_colour: $primary; $header-top-border: false; -$pin_prefix: '/cobrands/brent/images/'; - $col_click_map: $gray-1; $col_click_map_dark: darken($gray-1, 10%); diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js index 06ca9ce195..8cf413afb1 100644 --- a/web/cobrands/fixmystreet/assets.js +++ b/web/cobrands/fixmystreet/assets.js @@ -881,7 +881,7 @@ function construct_hover_feature_control(asset_layers, options) { // fixmystreet.pin_prefix isn't always available here, due // to file loading order, so get it from the DOM directly. var map_data = document.getElementById('js-map-data'); -var pin_prefix = fixmystreet.pin_prefix || (map_data ? map_data.getAttribute('data-pin_prefix') : '/i/'); +var pin_prefix = fixmystreet.pin_prefix || (map_data ? map_data.getAttribute('data-pin_prefix') : '/i/pins/'); fixmystreet.assets = { layers: [], @@ -914,13 +914,13 @@ fixmystreet.assets = { }), style_default_select: new OpenLayers.Style({ - externalGraphic: pin_prefix + "pin-spot.png", + externalGraphic: pin_prefix + "spot.png", fillColor: "#55BB00", graphicWidth: 48, graphicHeight: 64, graphicXOffset: -24, graphicYOffset: -56, - backgroundGraphic: pin_prefix + "pin-shadow.png", + backgroundGraphic: pin_prefix + "shadow/pin.png", backgroundWidth: 60, backgroundHeight: 30, backgroundXOffset: -7, diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 1a92cf0663..9c1ac4cdd8 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -382,11 +382,7 @@ fixmystreet.set_up = fixmystreet.set_up || {}; $.extend(fixmystreet.set_up, { basics: function() { // Preload the new report pin - if ( typeof fixmystreet !== 'undefined' && typeof fixmystreet.pin_prefix !== 'undefined' ) { - document.createElement('img').src = fixmystreet.pin_prefix + 'pin-' + fixmystreet.pin_new_report_colour + '.png'; - } else { - document.createElement('img').src = '/i/pin-green.png'; - } + document.createElement('img').src = '/i/pins/' + (fixmystreet.pin_new_report_colour || 'green') + '/pin.png'; $('a[href*="around"]').each(function() { this.href = this.href + (this.href.indexOf('?') > -1 ? '&js=1' : '?js=1'); diff --git a/web/cobrands/oxfordshire/_colours.scss b/web/cobrands/oxfordshire/_colours.scss index 2b70b1e356..e5555ac189 100644 --- a/web/cobrands/oxfordshire/_colours.scss +++ b/web/cobrands/oxfordshire/_colours.scss @@ -42,8 +42,6 @@ $header-top-border: false; $form-control-border-color: #525252; -$pin_prefix: '/cobrands/oxfordshire/images/'; - $search-help-alignment: left; $search-help-background: #fff3f3; $search-help-margin-desktop: -2em 0 0 0; diff --git a/web/cobrands/oxfordshire/assets.js b/web/cobrands/oxfordshire/assets.js index 550815627d..77957833e3 100644 --- a/web/cobrands/oxfordshire/assets.js +++ b/web/cobrands/oxfordshire/assets.js @@ -57,7 +57,7 @@ function setup_defect_popup() { hover: true, clickFeature: function (feature) { close_defect_popup(); - if (feature.attributes.colour !== 'defects') { + if (feature.attributes.colour !== 'blue-work') { // We're only interested in defects return; } diff --git a/web/cobrands/oxfordshire/base.scss b/web/cobrands/oxfordshire/base.scss index 216aabf25c..4ae2f71425 100644 --- a/web/cobrands/oxfordshire/base.scss +++ b/web/cobrands/oxfordshire/base.scss @@ -387,5 +387,24 @@ textarea { } } +// Like .item-list__item--indented except with a pin icon baked in! +.item-list__item--with-pin { + a { + background-image: url('/i/pins/yellow-cone/small.png'); + } + &.yellow-cone a { + background-image: url('/i/pins/yellow-cone/small.png'); + } + &.green-tick a { + background-image: url('/i/pins/green-tick/small.png'); + } + &.grey-cross a { + background-image: url('/i/pins/grey-cross/small.png'); + } + &.orange-work a { + background-image: url('/i/pins/orange-work/small.png'); + } +} + @import "oxfordshire-footer"; @import "oxfordshire-cookiepopup"; diff --git a/web/cobrands/oxfordshire/images/pin-grey-big.png b/web/cobrands/oxfordshire/images/pin-grey-big.png deleted file mode 100644 index 324195e51d..0000000000 Binary files a/web/cobrands/oxfordshire/images/pin-grey-big.png and /dev/null differ diff --git a/web/cobrands/oxfordshire/images/pin-grey-mini.png b/web/cobrands/oxfordshire/images/pin-grey-mini.png deleted file mode 100644 index 266d8f1858..0000000000 Binary files a/web/cobrands/oxfordshire/images/pin-grey-mini.png and /dev/null differ diff --git a/web/cobrands/oxfordshire/images/pin-grey-small.png b/web/cobrands/oxfordshire/images/pin-grey-small.png deleted file mode 100644 index 3c5893396c..0000000000 Binary files a/web/cobrands/oxfordshire/images/pin-grey-small.png and /dev/null differ diff --git a/web/cobrands/oxfordshire/images/pin-grey.png b/web/cobrands/oxfordshire/images/pin-grey.png deleted file mode 100644 index 89d03b6f24..0000000000 Binary files a/web/cobrands/oxfordshire/images/pin-grey.png and /dev/null differ diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss index 174f5eb853..c6450119d7 100644 --- a/web/cobrands/sass/_layout.scss +++ b/web/cobrands/sass/_layout.scss @@ -1055,7 +1055,7 @@ textarea.form-error { .keyboard-pin { display: none; - background-image: url('/i/pin-green-big.png'); + background-image: url('/i/pins/green/big.png'); background-size: contain; background-repeat: no-repeat; background-position: center; @@ -1070,7 +1070,7 @@ textarea.form-error { &::after { content: ""; - background-image: url('/i/pin-shadow-big.png'); + background-image: url('/i/pins/shadow/big.png'); background-size: contain; background-repeat: no-repeat; width: 88px; diff --git a/web/cobrands/sass/_report_list_pins.scss b/web/cobrands/sass/_report_list_pins.scss index f4140f1533..97a994f8a7 100644 --- a/web/cobrands/sass/_report_list_pins.scss +++ b/web/cobrands/sass/_report_list_pins.scss @@ -1,30 +1,28 @@ -$pin_prefix: '/i/' !default; - // Like .item-list__item--indented except with a pin icon baked in! .item-list__item--with-pin { @extend .item-list__item--indented; a { - background-image: url('#{$pin_prefix}pin-yellow-small.png'); + background-image: url('/i/pins/yellow/small.png'); background-size: 24px 32px; background-repeat: no-repeat; background-position: $left center; } &.yellow a { - background-image: url('#{$pin_prefix}pin-yellow-small.png'); + background-image: url('/i/pins/yellow/small.png'); } &.green a { - background-image: url('#{$pin_prefix}pin-green-small.png'); + background-image: url('/i/pins/green/small.png'); } &.red a { - background-image: url('#{$pin_prefix}pin-red-small.png'); + background-image: url('/i/pins/red/small.png'); } &.grey a { - background-image: url('#{$pin_prefix}pin-grey-small.png'); + background-image: url('/i/pins/grey/small.png'); } &.orange a { - background-image: url('#{$pin_prefix}pin-orange-small.png'); + background-image: url('/i/pins/orange/small.png'); } } .item-list__item--selected { diff --git a/web/i/pin-blue-big.png b/web/i/pin-blue-big.png deleted file mode 100644 index e820840826..0000000000 Binary files a/web/i/pin-blue-big.png and /dev/null differ diff --git a/web/i/pin-blue-mini.png b/web/i/pin-blue-mini.png deleted file mode 100644 index a8edbb6313..0000000000 Binary files a/web/i/pin-blue-mini.png and /dev/null differ diff --git a/web/i/pin-blue-small.png b/web/i/pin-blue-small.png deleted file mode 100644 index 699a8226cb..0000000000 Binary files a/web/i/pin-blue-small.png and /dev/null differ diff --git a/web/i/pin-blue.png b/web/i/pin-blue.png deleted file mode 100644 index 2eaf9e5896..0000000000 Binary files a/web/i/pin-blue.png and /dev/null differ diff --git a/web/i/pin-green-big.png b/web/i/pin-green-big.png deleted file mode 100644 index 3eab8da11a..0000000000 Binary files a/web/i/pin-green-big.png and /dev/null differ diff --git a/web/i/pin-green-mini.png b/web/i/pin-green-mini.png deleted file mode 100644 index 6497e53e8e..0000000000 Binary files a/web/i/pin-green-mini.png and /dev/null differ diff --git a/web/i/pin-green-small.png b/web/i/pin-green-small.png deleted file mode 100644 index ee7f8514bd..0000000000 Binary files a/web/i/pin-green-small.png and /dev/null differ diff --git a/web/i/pin-green.png b/web/i/pin-green.png deleted file mode 100644 index 83068d86c6..0000000000 Binary files a/web/i/pin-green.png and /dev/null differ diff --git a/web/i/pin-orange-big.png b/web/i/pin-orange-big.png deleted file mode 100644 index a7597d6b30..0000000000 Binary files a/web/i/pin-orange-big.png and /dev/null differ diff --git a/web/i/pin-orange-mini.png b/web/i/pin-orange-mini.png deleted file mode 100644 index 546f00e0a4..0000000000 Binary files a/web/i/pin-orange-mini.png and /dev/null differ diff --git a/web/i/pin-orange-small.png b/web/i/pin-orange-small.png deleted file mode 100644 index 7f866fd126..0000000000 Binary files a/web/i/pin-orange-small.png and /dev/null differ diff --git a/web/i/pin-orange.png b/web/i/pin-orange.png deleted file mode 100644 index 5e33e8010c..0000000000 Binary files a/web/i/pin-orange.png and /dev/null differ diff --git a/web/i/pin-red-big.png b/web/i/pin-red-big.png deleted file mode 100644 index 7c02b70296..0000000000 Binary files a/web/i/pin-red-big.png and /dev/null differ diff --git a/web/i/pin-red-mini.png b/web/i/pin-red-mini.png deleted file mode 100644 index 333d6a8c7a..0000000000 Binary files a/web/i/pin-red-mini.png and /dev/null differ diff --git a/web/i/pin-red-small.png b/web/i/pin-red-small.png deleted file mode 100644 index 2388ce03ef..0000000000 Binary files a/web/i/pin-red-small.png and /dev/null differ diff --git a/web/i/pin-red.png b/web/i/pin-red.png deleted file mode 100644 index 6ad0b1eeac..0000000000 Binary files a/web/i/pin-red.png and /dev/null differ diff --git a/web/i/pin-shadow-big.png b/web/i/pin-shadow-big.png deleted file mode 100644 index a65014a82c..0000000000 Binary files a/web/i/pin-shadow-big.png and /dev/null differ diff --git a/web/i/pin-shadow-small.png b/web/i/pin-shadow-small.png deleted file mode 100644 index fa5e65b5bb..0000000000 Binary files a/web/i/pin-shadow-small.png and /dev/null differ diff --git a/web/i/pin-shadow.png b/web/i/pin-shadow.png deleted file mode 100644 index 9a1f24ee7c..0000000000 Binary files a/web/i/pin-shadow.png and /dev/null differ diff --git a/web/i/pin-spot.png b/web/i/pin-spot.png deleted file mode 100644 index 43726fb48f..0000000000 Binary files a/web/i/pin-spot.png and /dev/null differ diff --git a/web/i/pin-yellow-big.png b/web/i/pin-yellow-big.png deleted file mode 100644 index 435f520b98..0000000000 Binary files a/web/i/pin-yellow-big.png and /dev/null differ diff --git a/web/i/pin-yellow-mini.png b/web/i/pin-yellow-mini.png deleted file mode 100644 index 7cbe0d09db..0000000000 Binary files a/web/i/pin-yellow-mini.png and /dev/null differ diff --git a/web/i/pin-yellow-small.png b/web/i/pin-yellow-small.png deleted file mode 100644 index 1e0235989c..0000000000 Binary files a/web/i/pin-yellow-small.png and /dev/null differ diff --git a/web/i/pin-yellow.png b/web/i/pin-yellow.png deleted file mode 100644 index 4fdaa7214c..0000000000 Binary files a/web/i/pin-yellow.png and /dev/null differ diff --git a/web/cobrands/oxfordshire/images/pin-defects-big.png b/web/i/pins/blue-work/big.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-defects-big.png rename to web/i/pins/blue-work/big.png diff --git a/web/cobrands/oxfordshire/images/pin-defects-mini.png b/web/i/pins/blue-work/mini.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-defects-mini.png rename to web/i/pins/blue-work/mini.png diff --git a/web/cobrands/oxfordshire/images/pin-defects-small.png b/web/i/pins/blue-work/pin.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-defects-small.png rename to web/i/pins/blue-work/pin.png diff --git a/web/cobrands/oxfordshire/images/pin-defects.png b/web/i/pins/blue-work/small.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-defects.png rename to web/i/pins/blue-work/small.png diff --git a/web/cobrands/northumberland/images/pin-blue-big.png b/web/i/pins/blue/big.png similarity index 100% rename from web/cobrands/northumberland/images/pin-blue-big.png rename to web/i/pins/blue/big.png diff --git a/web/cobrands/northumberland/images/pin-blue-mini.png b/web/i/pins/blue/mini.png similarity index 100% rename from web/cobrands/northumberland/images/pin-blue-mini.png rename to web/i/pins/blue/mini.png diff --git a/web/cobrands/northumberland/images/pin-blue.png b/web/i/pins/blue/pin.png similarity index 100% rename from web/cobrands/northumberland/images/pin-blue.png rename to web/i/pins/blue/pin.png diff --git a/web/cobrands/northumberland/images/pin-blue-small.png b/web/i/pins/blue/small.png similarity index 100% rename from web/cobrands/northumberland/images/pin-blue-small.png rename to web/i/pins/blue/small.png diff --git a/web/cobrands/oxfordshire/images/pin-green-big.png b/web/i/pins/green-tick/big.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-green-big.png rename to web/i/pins/green-tick/big.png diff --git a/web/cobrands/oxfordshire/images/pin-green-mini.png b/web/i/pins/green-tick/mini.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-green-mini.png rename to web/i/pins/green-tick/mini.png diff --git a/web/cobrands/oxfordshire/images/pin-green.png b/web/i/pins/green-tick/pin.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-green.png rename to web/i/pins/green-tick/pin.png diff --git a/web/cobrands/oxfordshire/images/pin-green-small.png b/web/i/pins/green-tick/small.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-green-small.png rename to web/i/pins/green-tick/small.png diff --git a/web/cobrands/northumberland/images/pin-green-big.png b/web/i/pins/green/big.png similarity index 100% rename from web/cobrands/northumberland/images/pin-green-big.png rename to web/i/pins/green/big.png diff --git a/web/cobrands/northumberland/images/pin-green-mini.png b/web/i/pins/green/mini.png similarity index 100% rename from web/cobrands/northumberland/images/pin-green-mini.png rename to web/i/pins/green/mini.png diff --git a/web/cobrands/northumberland/images/pin-green.png b/web/i/pins/green/pin.png similarity index 100% rename from web/cobrands/northumberland/images/pin-green.png rename to web/i/pins/green/pin.png diff --git a/web/cobrands/northumberland/images/pin-green-small.png b/web/i/pins/green/small.png similarity index 100% rename from web/cobrands/northumberland/images/pin-green-small.png rename to web/i/pins/green/small.png diff --git a/web/cobrands/northumberland/images/pin-grey-big.png b/web/i/pins/grey-cross/big.png similarity index 100% rename from web/cobrands/northumberland/images/pin-grey-big.png rename to web/i/pins/grey-cross/big.png diff --git a/web/cobrands/northumberland/images/pin-grey-mini.png b/web/i/pins/grey-cross/mini.png similarity index 100% rename from web/cobrands/northumberland/images/pin-grey-mini.png rename to web/i/pins/grey-cross/mini.png diff --git a/web/cobrands/northumberland/images/pin-grey.png b/web/i/pins/grey-cross/pin.png similarity index 100% rename from web/cobrands/northumberland/images/pin-grey.png rename to web/i/pins/grey-cross/pin.png diff --git a/web/cobrands/northumberland/images/pin-grey-small.png b/web/i/pins/grey-cross/small.png similarity index 100% rename from web/cobrands/northumberland/images/pin-grey-small.png rename to web/i/pins/grey-cross/small.png diff --git a/web/i/pin-grey-big.png b/web/i/pins/grey/big.png similarity index 100% rename from web/i/pin-grey-big.png rename to web/i/pins/grey/big.png diff --git a/web/i/pin-grey-mini.png b/web/i/pins/grey/mini.png similarity index 100% rename from web/i/pin-grey-mini.png rename to web/i/pins/grey/mini.png diff --git a/web/i/pin-grey.png b/web/i/pins/grey/pin.png similarity index 100% rename from web/i/pin-grey.png rename to web/i/pins/grey/pin.png diff --git a/web/i/pin-grey-small.png b/web/i/pins/grey/small.png similarity index 100% rename from web/i/pin-grey-small.png rename to web/i/pins/grey/small.png diff --git a/web/cobrands/oxfordshire/images/pin-orange-big.png b/web/i/pins/orange-work/big.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-orange-big.png rename to web/i/pins/orange-work/big.png diff --git a/web/cobrands/oxfordshire/images/pin-orange-mini.png b/web/i/pins/orange-work/mini.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-orange-mini.png rename to web/i/pins/orange-work/mini.png diff --git a/web/cobrands/oxfordshire/images/pin-orange.png b/web/i/pins/orange-work/pin.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-orange.png rename to web/i/pins/orange-work/pin.png diff --git a/web/cobrands/oxfordshire/images/pin-orange-small.png b/web/i/pins/orange-work/small.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-orange-small.png rename to web/i/pins/orange-work/small.png diff --git a/web/cobrands/northumberland/images/pin-orange-big.png b/web/i/pins/orange/big.png similarity index 100% rename from web/cobrands/northumberland/images/pin-orange-big.png rename to web/i/pins/orange/big.png diff --git a/web/cobrands/northumberland/images/pin-orange-mini.png b/web/i/pins/orange/mini.png similarity index 100% rename from web/cobrands/northumberland/images/pin-orange-mini.png rename to web/i/pins/orange/mini.png diff --git a/web/cobrands/northumberland/images/pin-orange.png b/web/i/pins/orange/pin.png similarity index 100% rename from web/cobrands/northumberland/images/pin-orange.png rename to web/i/pins/orange/pin.png diff --git a/web/cobrands/northumberland/images/pin-orange-small.png b/web/i/pins/orange/small.png similarity index 100% rename from web/cobrands/northumberland/images/pin-orange-small.png rename to web/i/pins/orange/small.png diff --git a/web/cobrands/northumberland/images/pin-red-big.png b/web/i/pins/red/big.png similarity index 100% rename from web/cobrands/northumberland/images/pin-red-big.png rename to web/i/pins/red/big.png diff --git a/web/cobrands/northumberland/images/pin-red-mini.png b/web/i/pins/red/mini.png similarity index 100% rename from web/cobrands/northumberland/images/pin-red-mini.png rename to web/i/pins/red/mini.png diff --git a/web/cobrands/northumberland/images/pin-red.png b/web/i/pins/red/pin.png similarity index 100% rename from web/cobrands/northumberland/images/pin-red.png rename to web/i/pins/red/pin.png diff --git a/web/cobrands/northumberland/images/pin-red-small.png b/web/i/pins/red/small.png similarity index 100% rename from web/cobrands/northumberland/images/pin-red-small.png rename to web/i/pins/red/small.png diff --git a/web/cobrands/northumberland/images/pin-shadow-big.png b/web/i/pins/shadow/big.png similarity index 100% rename from web/cobrands/northumberland/images/pin-shadow-big.png rename to web/i/pins/shadow/big.png diff --git a/web/cobrands/northumberland/images/pin-shadow.png b/web/i/pins/shadow/pin.png similarity index 100% rename from web/cobrands/northumberland/images/pin-shadow.png rename to web/i/pins/shadow/pin.png diff --git a/web/cobrands/northumberland/images/pin-shadow-small.png b/web/i/pins/shadow/small.png similarity index 100% rename from web/cobrands/northumberland/images/pin-shadow-small.png rename to web/i/pins/shadow/small.png diff --git a/web/cobrands/northumberland/images/pin-spot.png b/web/i/pins/spot.png similarity index 100% rename from web/cobrands/northumberland/images/pin-spot.png rename to web/i/pins/spot.png diff --git a/web/cobrands/oxfordshire/images/pin-shadow-big.png b/web/i/pins/whole-shadow-cone-spot/shadow/big.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-shadow-big.png rename to web/i/pins/whole-shadow-cone-spot/shadow/big.png diff --git a/web/cobrands/oxfordshire/images/pin-shadow.png b/web/i/pins/whole-shadow-cone-spot/shadow/pin.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-shadow.png rename to web/i/pins/whole-shadow-cone-spot/shadow/pin.png diff --git a/web/cobrands/oxfordshire/images/pin-shadow-small.png b/web/i/pins/whole-shadow-cone-spot/shadow/small.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-shadow-small.png rename to web/i/pins/whole-shadow-cone-spot/shadow/small.png diff --git a/web/cobrands/oxfordshire/images/pin-spot.png b/web/i/pins/whole-shadow-cone-spot/spot.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-spot.png rename to web/i/pins/whole-shadow-cone-spot/spot.png diff --git a/web/cobrands/oxfordshire/images/pin-yellow-big.png b/web/i/pins/yellow-cone/big.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-yellow-big.png rename to web/i/pins/yellow-cone/big.png diff --git a/web/cobrands/oxfordshire/images/pin-yellow-mini.png b/web/i/pins/yellow-cone/mini.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-yellow-mini.png rename to web/i/pins/yellow-cone/mini.png diff --git a/web/cobrands/oxfordshire/images/pin-yellow.png b/web/i/pins/yellow-cone/pin.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-yellow.png rename to web/i/pins/yellow-cone/pin.png diff --git a/web/cobrands/oxfordshire/images/pin-yellow-small.png b/web/i/pins/yellow-cone/small.png similarity index 100% rename from web/cobrands/oxfordshire/images/pin-yellow-small.png rename to web/i/pins/yellow-cone/small.png diff --git a/web/cobrands/northumberland/images/pin-yellow-big.png b/web/i/pins/yellow/big.png similarity index 100% rename from web/cobrands/northumberland/images/pin-yellow-big.png rename to web/i/pins/yellow/big.png diff --git a/web/cobrands/northumberland/images/pin-yellow-mini.png b/web/i/pins/yellow/mini.png similarity index 100% rename from web/cobrands/northumberland/images/pin-yellow-mini.png rename to web/i/pins/yellow/mini.png diff --git a/web/cobrands/northumberland/images/pin-yellow.png b/web/i/pins/yellow/pin.png similarity index 100% rename from web/cobrands/northumberland/images/pin-yellow.png rename to web/i/pins/yellow/pin.png diff --git a/web/cobrands/northumberland/images/pin-yellow-small.png b/web/i/pins/yellow/small.png similarity index 100% rename from web/cobrands/northumberland/images/pin-yellow-small.png rename to web/i/pins/yellow/small.png diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index be582f5d66..3e3352db94 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -800,12 +800,12 @@ $.extend(fixmystreet.utils, { }); pin_layer_style_map.addUniqueValueRules('default', 'size', { 'normal': { - externalGraphic: fixmystreet.pin_prefix + "pin-${colour}.png", + externalGraphic: "/i/pins/${colour}/pin.png", graphicWidth: 48, graphicHeight: 64, graphicXOffset: -24, graphicYOffset: -64, - backgroundGraphic: fixmystreet.pin_prefix + "pin-shadow.png", + backgroundGraphic: fixmystreet.pin_prefix + "shadow/pin.png", backgroundWidth: 60, backgroundHeight: 30, backgroundXOffset: -7, @@ -813,24 +813,24 @@ $.extend(fixmystreet.utils, { popupYOffset: -40 }, 'big': { - externalGraphic: fixmystreet.pin_prefix + "pin-${colour}-big.png", + externalGraphic: "/i/pins/${colour}/big.png", graphicWidth: 78, graphicHeight: 105, graphicXOffset: -39, graphicYOffset: -105, - backgroundGraphic: fixmystreet.pin_prefix + "pin-shadow-big.png", + backgroundGraphic: fixmystreet.pin_prefix + "shadow/big.png", backgroundWidth: 88, backgroundHeight: 40, backgroundXOffset: -10, backgroundYOffset: -35 }, 'small': { - externalGraphic: fixmystreet.pin_prefix + "pin-${colour}-small.png", + externalGraphic: "/i/pins/${colour}/small.png", graphicWidth: 24, graphicHeight: 32, graphicXOffset: -12, graphicYOffset: -32, - backgroundGraphic: fixmystreet.pin_prefix + "pin-shadow-small.png", + backgroundGraphic: fixmystreet.pin_prefix + "shadow/small.png", backgroundWidth: 30, backgroundHeight: 15, backgroundXOffset: -4, @@ -838,7 +838,7 @@ $.extend(fixmystreet.utils, { popupYOffset: -20 }, 'mini': { - externalGraphic: fixmystreet.pin_prefix + "pin-${colour}-mini.png", + externalGraphic: "/i/pins/${colour}/mini.png", graphicWidth: 16, graphicHeight: 20, graphicXOffset: -8,