diff options
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/fixmystreet.js | 2 | ||||
-rw-r--r-- | web/js/map-bing-ol.js | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js index 7f6014c6c..50ccb2ac3 100644 --- a/web/js/fixmystreet.js +++ b/web/js/fixmystreet.js @@ -12,7 +12,7 @@ YAHOO.util.Event.onContentReady('pc', function() { YAHOO.util.Event.onContentReady('mapForm', function() { this.onsubmit = function() { - if (this.submit_problem) { + if (this.submit_problem) { this.onsubmit = function() { return false; }; } 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); |