Make doubleclick-follow also set zoom, like clicking the follow arrow does.
This commit is contained in:
parent
5020d75b9e
commit
d76b8948b3
|
@ -851,15 +851,22 @@ function selectPlaneByHex(hex,autofollow) {
|
||||||
SelectedPlane = null;
|
SelectedPlane = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
FollowSelected = (autofollow ? true : false);
|
if (SelectedPlane !== null && autofollow) {
|
||||||
|
FollowSelected = true;
|
||||||
|
if (GoogleMap.getZoom() < 8)
|
||||||
|
GoogleMap.setZoom(8);
|
||||||
|
} else {
|
||||||
|
FollowSelected = false;
|
||||||
|
}
|
||||||
|
|
||||||
refreshSelected();
|
refreshSelected();
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleFollowSelected() {
|
function toggleFollowSelected() {
|
||||||
FollowSelected = !FollowSelected;
|
FollowSelected = !FollowSelected;
|
||||||
refreshSelected();
|
|
||||||
if (FollowSelected && GoogleMap.getZoom() < 8)
|
if (FollowSelected && GoogleMap.getZoom() < 8)
|
||||||
GoogleMap.setZoom(8);
|
GoogleMap.setZoom(8);
|
||||||
|
refreshSelected();
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetMap() {
|
function resetMap() {
|
||||||
|
|
Loading…
Reference in a new issue