Don't return a feature if there are no coordinates
This commit is contained in:
@@ -156,6 +156,9 @@ ol.format.IGC.prototype.readFeatureFromText = function(text) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (flatCoordinates.length === 0) {
|
||||
return null;
|
||||
}
|
||||
var lineString = new ol.geom.LineString(null);
|
||||
var layout = altitudeMode == ol.format.IGCZ.NONE ?
|
||||
ol.geom.GeometryLayout.XYM : ol.geom.GeometryLayout.XYZM;
|
||||
|
||||
Reference in New Issue
Block a user