Don't choke when selecting positionless planes in the table.
This commit is contained in:
parent
4305c99b01
commit
426e77a252
|
@ -392,7 +392,7 @@ PlaneObject.prototype.clearMarker = function() {
|
||||||
|
|
||||||
// Update our marker on the map
|
// Update our marker on the map
|
||||||
PlaneObject.prototype.updateMarker = function(moved) {
|
PlaneObject.prototype.updateMarker = function(moved) {
|
||||||
if (!this.visible) {
|
if (!this.visible || this.position == null) {
|
||||||
this.clearMarker();
|
this.clearMarker();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -415,6 +415,9 @@ PlaneObject.prototype.updateLines = function() {
|
||||||
if (!this.selected)
|
if (!this.selected)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (this.track_linesegs.length == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
var estimateStyle = new ol.style.Style({
|
var estimateStyle = new ol.style.Style({
|
||||||
stroke: new ol.style.Stroke({
|
stroke: new ol.style.Stroke({
|
||||||
color: '#a08080',
|
color: '#a08080',
|
||||||
|
|
Loading…
Reference in a new issue