diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/css/core.css | 5 | ||||
-rw-r--r-- | web/css/core.scss | 5 | ||||
-rw-r--r-- | web/js/map-bing-ol.js | 6 |
3 files changed, 15 insertions, 1 deletions
diff --git a/web/css/core.css b/web/css/core.css index 576437251..a67c54f17 100644 --- a/web/css/core.css +++ b/web/css/core.css @@ -377,6 +377,11 @@ margin-top: 2em; } +.olControlAttribution { + bottom: 3px !important; + left: 3px; +} + @media print { #mysociety #map_box { float: none; diff --git a/web/css/core.scss b/web/css/core.scss index 246a33167..74e62f481 100644 --- a/web/css/core.scss +++ b/web/css/core.scss @@ -507,6 +507,11 @@ $map_width: 500px; } +.olControlAttribution { + bottom: 3px !important; + left: 3px; +} + // Printing, SCSS doesn't handle @media nesting @media print { diff --git a/web/js/map-bing-ol.js b/web/js/map-bing-ol.js index c3c3b994e..75bce80d3 100644 --- a/web/js/map-bing-ol.js +++ b/web/js/map-bing-ol.js @@ -1,5 +1,6 @@ function set_map_config(perm) { fixmystreet.controls = [ + new OpenLayers.Control.Attribution(), new OpenLayers.Control.ArgParser(), new OpenLayers.Control.Navigation(), perm, @@ -9,6 +10,9 @@ function set_map_config(perm) { } OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, { + attribution: '<a href="http://www.bing.com/maps/">' + + '<img border=0 src="http://dev.virtualearth.net/Branding/logo_powered_by.png"></a>', + initialize: function(name, options) { var url = []; options = OpenLayers.Util.extend({ @@ -18,7 +22,7 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, { transitionEffect: "resize", sphericalMercator: true, buffer: 0, - attribution: "© Microsoft / OS 2010" + //attribution: "© Microsoft / OS 2010" }, options); var newArguments = [name, url, options]; OpenLayers.Layer.XYZ.prototype.initialize.apply(this, newArguments); |