When first following a plane, zoom in if we are zoomed far out.
This commit is contained in:
parent
3fd2032f49
commit
d3537ec139
|
@ -852,6 +852,8 @@ function selectPlaneByHex(hex) {
|
||||||
function toggleFollowSelected() {
|
function toggleFollowSelected() {
|
||||||
FollowSelected = !FollowSelected;
|
FollowSelected = !FollowSelected;
|
||||||
refreshSelected();
|
refreshSelected();
|
||||||
|
if (FollowSelected && GoogleMap.getZoom() < 8)
|
||||||
|
GoogleMap.setZoom(8);
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetMap() {
|
function resetMap() {
|
||||||
|
|
Loading…
Reference in a new issue