Add ol.format.Polyline#readProjectionFromText
This commit is contained in:
@@ -5,6 +5,7 @@ goog.require('ol.Feature');
|
|||||||
goog.require('ol.format.Text');
|
goog.require('ol.format.Text');
|
||||||
goog.require('ol.geom.LineString');
|
goog.require('ol.geom.LineString');
|
||||||
goog.require('ol.geom.flat');
|
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
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user