Factor out ol.geom.flat.length

This commit is contained in:
Tom Payne
2014-03-12 11:57:01 +01:00
parent 522fda1688
commit 20ee1dc992
3 changed files with 47 additions and 42 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ goog.require('ol.geom.SimpleGeometry');
goog.require('ol.geom.flat');
goog.require('ol.geom.flat.closest');
goog.require('ol.geom.flat.interpolate');
goog.require('ol.geom.flat.length');
goog.require('ol.geom.flat.simplify');
@@ -136,7 +137,7 @@ ol.geom.LineString.prototype.getCoordinates = function() {
* @todo stability experimental
*/
ol.geom.LineString.prototype.getLength = function() {
return ol.geom.flat.lineStringLength(
return ol.geom.flat.length.lineString(
this.flatCoordinates, 0, this.flatCoordinates.length, this.stride);
};