|
|
|
@ -100,6 +100,7 @@ function showLocationPopup(latitude, longitude, words, accuracy) {
|
|
|
|
|
latitude + (accuracy / 2),
|
|
|
|
|
longitude + (accuracy / 2)
|
|
|
|
|
);
|
|
|
|
|
window.location.hash = latitude + "," + longitude;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function drawRectangle(fromlat, fromlng, tolat, tolng) {
|
|
|
|
@ -143,4 +144,18 @@ function clearRectangle() {
|
|
|
|
|
if (typeof map.getLayer("rectangle") != "undefined") {
|
|
|
|
|
map.removeLayer('rectangle');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function lookupAndShowCoords(latitude, longitude) {
|
|
|
|
|
var words = FixPhrase.encode(latitude, longitude);
|
|
|
|
|
|
|
|
|
|
map.flyTo({
|
|
|
|
|
center: {
|
|
|
|
|
lat: latitude,
|
|
|
|
|
lng: longitude
|
|
|
|
|
},
|
|
|
|
|
zoom: Math.max(map.getZoom(), 14)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
showLocationPopup(latitude, longitude, words, 0.0001);
|
|
|
|
|
}
|