fix map 'report map error' css
This commit is contained in:
parent
0ee1caa7bb
commit
42cb002c5f
1 changed files with 37 additions and 19 deletions
|
@ -663,6 +663,43 @@ 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$="$apiref:1"]').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) {
|
||||||
|
@ -914,25 +951,6 @@ Ox.Map = function(options, self) {
|
||||||
&& southWest.lng() == northEast.lng();
|
&& southWest.lng() == northEast.lng();
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatTerms() {
|
|
||||||
setTimeout(function() {
|
|
||||||
var $element;
|
|
||||||
try {
|
|
||||||
$element = $(self.$map.find('a[href$="terms_maps.html"]').parent()).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)'});
|
|
||||||
} catch (e) {}
|
|
||||||
}, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
function mapChanged() {
|
function mapChanged() {
|
||||||
// This is the handler that actually adds the places to the map.
|
// This is the handler that actually adds the places to the map.
|
||||||
// Gets called after panning or zooming, and when the map is idle.
|
// Gets called after panning or zooming, and when the map is idle.
|
||||||
|
|
Loading…
Reference in a new issue