From 1864f204f7ce45f103b44a64fd6837e584a2b602 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Tue, 17 Dec 2013 01:15:54 +0100 Subject: [PATCH] Add ol.format.Polyline#readProjectionFromText --- src/ol/format/polylineformat.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ol/format/polylineformat.js b/src/ol/format/polylineformat.js index a661f145c1..b2689ed524 100644 --- a/src/ol/format/polylineformat.js +++ b/src/ol/format/polylineformat.js @@ -5,6 +5,7 @@ goog.require('ol.Feature'); goog.require('ol.format.Text'); goog.require('ol.geom.LineString'); goog.require('ol.geom.flat'); +goog.require('ol.proj'); @@ -377,6 +378,14 @@ ol.format.Polyline.prototype.readGeometryFromText = function(text) { }; +/** + * @inheritDoc + */ +ol.format.Polyline.prototype.readProjectionFromText = function(text) { + return ol.proj.get('EPSG:4326'); +}; + + /** * @inheritDoc */