Factor out ol.geom.flat.inflate

This commit is contained in:
Tom Payne
2014-03-12 12:59:40 +01:00
parent 9ca996725e
commit 3541a01aab
11 changed files with 112 additions and 97 deletions

View File

@@ -4,7 +4,7 @@ goog.require('goog.asserts');
goog.require('ol.Feature');
goog.require('ol.format.TextFeature');
goog.require('ol.geom.LineString');
goog.require('ol.geom.flat');
goog.require('ol.geom.flat.inflate');
goog.require('ol.proj');
@@ -279,7 +279,7 @@ ol.format.Polyline.prototype.readFeaturesFromText = function(text) {
*/
ol.format.Polyline.prototype.readGeometryFromText = function(text) {
var flatCoordinates = ol.format.Polyline.decodeFlatCoordinates(text, 2);
var coordinates = ol.geom.flat.inflateCoordinates(
var coordinates = ol.geom.flat.inflate.coordinates(
flatCoordinates, 0, flatCoordinates.length, 2);
return new ol.geom.LineString(coordinates);
};