aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-07-23 19:51:04 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-07-23 19:51:04 +0100
commit8809bfc5eb256221f2ddd8653e2ab26ce28d975a (patch)
tree26d8f9683d6ebce4b5f6de7b2bb03f9424fd67ec /web/js
parent7aa879d03334c4092d60d5f39443ad9b2405bac5 (diff)
Get attribution right on zoomed in maps in NI.
Diffstat (limited to 'web/js')
-rw-r--r--web/js/map-bing-ol.js4
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 &copy; 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>';