follow wasn't working

This commit is contained in:
Matthias Wirth
2020-04-22 14:28:08 +02:00
parent 1ab03fd56e
commit 96d6cfa520
2 changed files with 8 additions and 4 deletions

View File

@@ -1450,8 +1450,11 @@ PlaneObject.prototype.updateFeatures = function(now, last, redraw) {
if (lines)
this.updateLines();
if (marker)
if (marker) {
this.updateMarker(true);
if (this == SelectedPlane && FollowSelected && this.position)
OLMap.getView().setCenter(ol.proj.fromLonLat(this.position));
}
} else {
if (this.visible) {
//console.log("hiding " + this.icao);