diff --git a/source/UI/js/Map/Map.js b/source/UI/js/Map/Map.js index c501e8f2..fc91132b 100644 --- a/source/UI/js/Map/Map.js +++ b/source/UI/js/Map/Map.js @@ -663,43 +663,6 @@ Ox.Map = function(options, self) { return place && place.editing; } - function formatTerms() { - var $element; - setTimeout(function() { - try { - // "Terms of Use" - $element = $(self.$map.find('a[href$="terms_maps.html"]').parent()); - $element.css({ - color: 'rgb(192, 192, 192)', - textShadow: '1px 1px 0 rgb(64, 64, 64)' - }); - ['moz', 'o', 'webkit'].forEach(function(browser) { - $element.css({ - backgroundImage: '-' + browser - + '-linear-gradient(left, rgba(255, 255, 255, 0) 0px, rgba(255, 255, 255, 0.1) 50px)' - }); - }); - $element.children().css({ - color: 'rgb(192, 192, 192)' - }); - // Report Map Error - $element = $(self.$map.find('a[href$="output=classic"]').parent()) - $element.css({ - borderColor: 'transparent', - backgroundColor: 'rgba(255, 255, 255, 0.1)', - color: 'rgb(192, 192, 192)', - textShadow: '1px 1px 0 rgb(64, 64, 64)' - }); - $element.children().css({ - color: 'rgb(192, 192, 192)', - fontSize: '10px', - fontWeight: 'normal', - textDecoration: 'underline' - }); - } catch (e) {} - }); - } - function getElevation(point, callback) { // fixme: unused if (arguments.length == 1) { @@ -893,7 +856,6 @@ Ox.Map = function(options, self) { google.maps.event.addListener(self.map, 'click', clickMap); google.maps.event.addListener(self.map, 'idle', mapChanged); google.maps.event.addListener(self.map, 'zoom_changed', zoomChanged); - google.maps.event.addListenerOnce(self.map, 'tilesloaded', tilesLoaded); google.maps.event.trigger(self.map, 'resize'); // needed to get mouse x/y coordinates on marker mouseover, @@ -1029,7 +991,6 @@ Ox.Map = function(options, self) { if (self.zoomChanged) { self.zoomChanged = false; } - formatTerms(); } function pan(x, y) { @@ -1343,10 +1304,6 @@ Ox.Map = function(options, self) { that.triggerEvent('find', {value: data.value}); } - function tilesLoaded() { - setTimeout(formatTerms, 250); - } - function toggleControls() { var $controls = that.find('.OxMapControl'); self.options.showControls = !self.options.showControls;