diff options
-rw-r--r-- | web/js/map-bing-ol.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/js/map-bing-ol.js b/web/js/map-bing-ol.js index 6f9916229..6d86663f0 100644 --- a/web/js/map-bing-ol.js +++ b/web/js/map-bing-ol.js @@ -56,7 +56,9 @@ OpenLayers.Layer.BingUK = OpenLayers.Class(OpenLayers.Layer.XYZ, { var z = this.map.getZoom() + this.zoomOffset; var copyrights; var logo = ''; - if (z >= 16) { + 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 2010'; } else { logo = '<a href="http://www.bing.com/maps/"><img border=0 src="//dev.virtualearth.net/Branding/logo_powered_by.png"></a>'; |