Fix a bug
This commit is contained in:
parent
feed3d2918
commit
b9b61cae00
@ -100,8 +100,11 @@ function showLocationPopup(latitude, longitude, words, accuracy) {
|
|||||||
latitude + (accuracy / 2),
|
latitude + (accuracy / 2),
|
||||||
longitude + (accuracy / 2)
|
longitude + (accuracy / 2)
|
||||||
);
|
);
|
||||||
|
// This prevents a bug where the app starts looping because it reacts to its own hash changes
|
||||||
|
if (accuracy == 0.0001) {
|
||||||
window.location.hash = latitude + "," + longitude;
|
window.location.hash = latitude + "," + longitude;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function drawRectangle(fromlat, fromlng, tolat, tolng) {
|
function drawRectangle(fromlat, fromlng, tolat, tolng) {
|
||||||
var geojson = {
|
var geojson = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user