Doubleclick on plane marker to follow, too.

This commit is contained in:
Oliver Jowett 2015-01-22 21:35:59 +00:00
parent 53203a5f71
commit f76842d186
2 changed files with 4 additions and 3 deletions
public_html

View file

@ -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