Factor out ol.geom.flat.deflate
This commit is contained in:
@@ -8,6 +8,7 @@ goog.require('ol.geom.LineString');
|
||||
goog.require('ol.geom.SimpleGeometry');
|
||||
goog.require('ol.geom.flat');
|
||||
goog.require('ol.geom.flat.closest');
|
||||
goog.require('ol.geom.flat.deflate');
|
||||
goog.require('ol.geom.flat.interpolate');
|
||||
goog.require('ol.geom.flat.simplify');
|
||||
|
||||
@@ -247,7 +248,7 @@ ol.geom.MultiLineString.prototype.setCoordinates =
|
||||
if (goog.isNull(this.flatCoordinates)) {
|
||||
this.flatCoordinates = [];
|
||||
}
|
||||
var ends = ol.geom.flat.deflateCoordinatess(
|
||||
var ends = ol.geom.flat.deflate.coordinatess(
|
||||
this.flatCoordinates, 0, coordinates, this.stride, this.ends_);
|
||||
this.flatCoordinates.length = ends.length === 0 ? 0 : ends[ends.length - 1];
|
||||
this.dispatchChangeEvent();
|
||||
|
||||
Reference in New Issue
Block a user