"Reset Map" deselects plane correctly.

modified:   public_html/script.js
This commit is contained in:
terribl 2013-05-31 10:29:51 +03:00
parent 10e33892e8
commit 0e3426d46b

View file

@ -570,7 +570,11 @@ function resetMap() {
// Set and refresh
GoogleMap.setZoom(parseInt(ZoomLvl));
GoogleMap.setCenter(new google.maps.LatLng(parseFloat(CenterLat), parseFloat(CenterLon)));
Selected = null;
if (SelectedPlane) {
selectPlaneByHex(SelectedPlane);
}
refreshSelected();
refreshTableInfo();
}