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 */