Factor out ol.geom.flat.deflate

This commit is contained in:
Tom Payne
2014-03-12 12:50:50 +01:00
parent d525b43d06
commit 266c43dc78
12 changed files with 147 additions and 128 deletions
+2 -1
View File
@@ -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();