diff options
author | Struan Donald <struan@exo.org.uk> | 2018-11-08 14:25:09 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2018-11-19 13:27:44 +0000 |
commit | c0c553a862dfb7de74c1e2dd9548bf1c0231c6f6 (patch) | |
tree | c3f10bcd14fa1eb18a8f9cadd7884a41c46f5af0 | |
parent | 92cc1d4c0f498ba0d36dce935a1c86d7cc96f2f1 (diff) |
[Bristol] include highways england data
This changes the projection from EPSG:3857, which is not included in the
bristol openlayers build, to the identical EPSG:900913 which is, so that
the conversion happens.
-rw-r--r-- | templates/web/bristol/footer_extra_js.html | 1 | ||||
-rw-r--r-- | web/cobrands/bristol/base.scss | 6 | ||||
-rw-r--r-- | web/cobrands/highways/assets.js | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/templates/web/bristol/footer_extra_js.html b/templates/web/bristol/footer_extra_js.html index 218607498..1742a55e2 100644 --- a/templates/web/bristol/footer_extra_js.html +++ b/templates/web/bristol/footer_extra_js.html @@ -1,4 +1,5 @@ [% scripts.push( version('/vendor/OpenLayers.Projection.OrdnanceSurvey.js') version('/cobrands/fixmystreet-uk-councils/js.js'), + version('/cobrands/highways/assets.js'), ) %] diff --git a/web/cobrands/bristol/base.scss b/web/cobrands/bristol/base.scss index 96adf1001..e0dc1bdb5 100644 --- a/web/cobrands/bristol/base.scss +++ b/web/cobrands/bristol/base.scss @@ -126,3 +126,9 @@ label { #map #drag .square-map__tile { position: static; } + +// uses important because btn also uses it +#highways .segmented-control--radio input:checked + label.btn { + color: $g7 !important; + font-weight: bold !important; +} diff --git a/web/cobrands/highways/assets.js b/web/cobrands/highways/assets.js index f6bf3ad32..5f361e491 100644 --- a/web/cobrands/highways/assets.js +++ b/web/cobrands/highways/assets.js @@ -20,9 +20,7 @@ var defaults = { // the M6 max_resolution: 20, min_resolution: 0.5971642833948135, - asset_id_field: 'CENTRAL_AS', - geometryName: 'msGeometry', - srsName: "EPSG:3857", + srsName: "EPSG:900913", strategy_class: OpenLayers.Strategy.FixMyStreet }; |