diff --git a/src/ol/geom/multilinestring.js b/src/ol/geom/multilinestring.js index c075a5bd6b..ee773a1c51 100644 --- a/src/ol/geom/multilinestring.js +++ b/src/ol/geom/multilinestring.js @@ -136,12 +136,19 @@ ol.geom.MultiLineString.prototype.getEnds = function() { * @todo stability experimental */ ol.geom.MultiLineString.prototype.getLineStrings = function() { - // FIXME we should construct the line strings from the flat coordinates - var coordinates = this.getCoordinates(); + var flatCoordinates = this.flatCoordinates; + var ends = this.ends_; + var layout = this.layout; + /** @type {Array.