Doubleclick on plane marker to follow, too.
This commit is contained in:
parent
53203a5f71
commit
f76842d186
|
@ -257,7 +257,7 @@ PlaneObject.prototype.updateTick = function(receiver_timestamp) {
|
|||
this.clearMarker();
|
||||
this.visible = false;
|
||||
if (SelectedPlane == this.icao)
|
||||
selectPlaneByHex(null);
|
||||
selectPlaneByHex(null,false);
|
||||
}
|
||||
} else {
|
||||
this.visible = true;
|
||||
|
@ -301,7 +301,8 @@ PlaneObject.prototype.updateMarker = function(moved) {
|
|||
});
|
||||
|
||||
// Trap clicks for this marker.
|
||||
google.maps.event.addListener(this.marker, 'click', selectPlaneByHex.bind(undefined,this.icao));
|
||||
google.maps.event.addListener(this.marker, 'click', selectPlaneByHex.bind(undefined,this.icao,false));
|
||||
google.maps.event.addListener(this.marker, 'dblclick', selectPlaneByHex.bind(undefined,this.icao,true));
|
||||
}
|
||||
|
||||
// Setting the marker title
|
||||
|
|
|
@ -872,7 +872,7 @@ function resetMap() {
|
|||
GoogleMap.setZoom(ZoomLvl);
|
||||
GoogleMap.setCenter(new google.maps.LatLng(CenterLat, CenterLon));
|
||||
|
||||
selectPlaneByHex(null);
|
||||
selectPlaneByHex(null,false);
|
||||
}
|
||||
|
||||
function drawCircle(marker, distance) {
|
||||
|
|
Loading…
Reference in a new issue