Ox.Map: remove terms reformatting
This commit is contained in:
parent
fc4dc70545
commit
511a5267b5
1 changed files with 0 additions and 43 deletions
|
@ -663,43 +663,6 @@ Ox.Map = function(options, self) {
|
||||||
return place && place.editing;
|
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) {
|
function getElevation(point, callback) {
|
||||||
// fixme: unused
|
// fixme: unused
|
||||||
if (arguments.length == 1) {
|
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, 'click', clickMap);
|
||||||
google.maps.event.addListener(self.map, 'idle', mapChanged);
|
google.maps.event.addListener(self.map, 'idle', mapChanged);
|
||||||
google.maps.event.addListener(self.map, 'zoom_changed', zoomChanged);
|
google.maps.event.addListener(self.map, 'zoom_changed', zoomChanged);
|
||||||
google.maps.event.addListenerOnce(self.map, 'tilesloaded', tilesLoaded);
|
|
||||||
google.maps.event.trigger(self.map, 'resize');
|
google.maps.event.trigger(self.map, 'resize');
|
||||||
|
|
||||||
// needed to get mouse x/y coordinates on marker mouseover,
|
// needed to get mouse x/y coordinates on marker mouseover,
|
||||||
|
@ -1029,7 +991,6 @@ Ox.Map = function(options, self) {
|
||||||
if (self.zoomChanged) {
|
if (self.zoomChanged) {
|
||||||
self.zoomChanged = false;
|
self.zoomChanged = false;
|
||||||
}
|
}
|
||||||
formatTerms();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function pan(x, y) {
|
function pan(x, y) {
|
||||||
|
@ -1343,10 +1304,6 @@ Ox.Map = function(options, self) {
|
||||||
that.triggerEvent('find', {value: data.value});
|
that.triggerEvent('find', {value: data.value});
|
||||||
}
|
}
|
||||||
|
|
||||||
function tilesLoaded() {
|
|
||||||
setTimeout(formatTerms, 250);
|
|
||||||
}
|
|
||||||
|
|
||||||
function toggleControls() {
|
function toggleControls() {
|
||||||
var $controls = that.find('.OxMapControl');
|
var $controls = that.find('.OxMapControl');
|
||||||
self.options.showControls = !self.options.showControls;
|
self.options.showControls = !self.options.showControls;
|
||||||
|
|
Loading…
Reference in a new issue