diff options
author | Struan Donald <struan@exo.org.uk> | 2018-10-26 11:25:01 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2018-11-19 13:27:43 +0000 |
commit | 0e8c7453c40db5ade085fb759ba73fb8ecf9b18d (patch) | |
tree | db38c5676a712bc47a12d5fa7e58f2d10042431d /web/js/map-fms.js | |
parent | b97ea167b85dab9ef6a3781e24a457b392f4154c (diff) |
[UK] send reports on highways agency roads to highways agency
Includes an option to send to the council instead for e.g. reports on
underpasses or bridges.
Fixes #736
Diffstat (limited to 'web/js/map-fms.js')
-rw-r--r-- | web/js/map-fms.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/web/js/map-fms.js b/web/js/map-fms.js index 3e23b7590..ac27cfbce 100644 --- a/web/js/map-fms.js +++ b/web/js/map-fms.js @@ -39,10 +39,14 @@ OpenLayers.Layer.BingUK = OpenLayers.Class(OpenLayers.Layer.Bing, { var c = this.map.getCenter(); var in_uk = c ? this.in_uk(c) : true; if (z >= 16 && in_uk) { - copyrights = 'Contains Ordnance Survey data © Crown copyright and database right 2016'; + copyrights = 'Contains Highways England and Ordnance Survey data © Crown copyright and database right 2016'; } else { logo = '<a href="https://www.bing.com/maps/"><img border=0 src="//dev.virtualearth.net/Branding/logo_powered_by.png"></a>'; - copyrights = '© 2016 <a href="https://www.bing.com/maps/">Microsoft</a>. © AND, Navteq, Ordnance Survey'; + if (in_uk) { + copyrights = '© 2016 <a href="https://www.bing.com/maps/">Microsoft</a>. © AND, Navteq, Highways England, Ordnance Survey'; + } else { + copyrights = '© 2016 <a href="https://www.bing.com/maps/">Microsoft</a>. © AND, Navteq, Ordnance Survey'; + } } this._updateAttribution(copyrights, logo); }, |