use Ox.print instead of console.log
This commit is contained in:
parent
4cc7bad63c
commit
9eac279745
7 changed files with 16 additions and 16 deletions
|
|
@ -65,7 +65,7 @@
|
|||
latLng = Ox.getLatLng((e.clientX - left) / width, (e.clientY - top) / height);
|
||||
Ox.getPlacemarks(latLng.lat, latLng.lng, function(data) {
|
||||
var length = data.results.length;
|
||||
console.log(data)
|
||||
Ox.print(data)
|
||||
if (length && data.results[length - 1].types[0] == "country") {
|
||||
var $img = $("#" + data.results[length - 1].address_components[0].short_name);
|
||||
if (!$img.length) {
|
||||
|
|
@ -73,7 +73,7 @@
|
|||
if (data.results.length) {
|
||||
var location = data.results[0].geometry.location,
|
||||
xy = Ox.getXY(location.lat(), location.lng());
|
||||
//console.log(+new Date, place.name, location, xy);
|
||||
//Ox.print(+new Date, place.name, location, xy);
|
||||
var $img = $("<img/>")
|
||||
.attr({
|
||||
id: data.results[0].address_components[0].short_name,
|
||||
|
|
@ -98,7 +98,7 @@
|
|||
$img.removeClass("hover");
|
||||
}, 1000);
|
||||
} else {
|
||||
//console.log("no results", place, data)
|
||||
//Ox.print("no results", place, data)
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
@ -169,10 +169,10 @@
|
|||
lng: data.results[0].geometry.viewport.getNorthEast().lng().toFixed(10)
|
||||
}
|
||||
};
|
||||
console.log(JSON.stringify(d))
|
||||
Ox.print(JSON.stringify(d))
|
||||
json.push(d);
|
||||
} else {
|
||||
console.log("no results", place, data)
|
||||
Ox.print("no results", place, data)
|
||||
}
|
||||
});
|
||||
if (places.length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue