Don't start follow mode immediately
This commit is contained in:
parent
4b415dba59
commit
7ff4c79910
@ -102,11 +102,13 @@ window.plugin.userLocation.locate = function(lat, lng, accuracy) {
|
|||||||
// so limit to 17 (enough to see all portals)
|
// so limit to 17 (enough to see all portals)
|
||||||
zoom = Math.min(zoom,17);
|
zoom = Math.min(zoom,17);
|
||||||
|
|
||||||
window.map.setView(latlng, zoom);
|
if(window.map.getCenter().distanceTo(latlng) < 10) {
|
||||||
|
window.plugin.userLocation.follow = true;
|
||||||
|
if(typeof android !== 'undefined' && android && android.setFollowMode)
|
||||||
|
android.setFollowMode(window.plugin.userLocation.follow);
|
||||||
|
}
|
||||||
|
|
||||||
window.plugin.userLocation.follow = true;
|
window.map.setView(latlng, zoom);
|
||||||
if(typeof android !== 'undefined' && android && android.setFollowMode)
|
|
||||||
android.setFollowMode(window.plugin.userLocation.follow);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.plugin.userLocation.onLocationChange = function(lat, lng) {
|
window.plugin.userLocation.onLocationChange = function(lat, lng) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user