modifying geolocation watchposition to request high accuracy readings, which should trigger GPS
This commit is contained in:
parent
17433b6c19
commit
f8b9496a86
|
@ -966,7 +966,10 @@
|
||||||
};
|
};
|
||||||
if (!!(navigator.geolocation)) {
|
if (!!(navigator.geolocation)) {
|
||||||
navigator.geolocation.getCurrentPosition(success, fail);
|
navigator.geolocation.getCurrentPosition(success, fail);
|
||||||
this.id = navigator.geolocation.watchPosition(success, fail);
|
this.id = navigator.geolocation.watchPosition(
|
||||||
|
success,
|
||||||
|
fail,
|
||||||
|
{ enableHighAccuracy : true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -983,11 +986,6 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// DomElementSource: string (U DOM string) -> EventSource
|
// DomElementSource: string (U DOM string) -> EventSource
|
||||||
// A DomEventSource allows DOM elements to send events over to
|
// A DomEventSource allows DOM elements to send events over to
|
||||||
// web-world.
|
// web-world.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user