Merge pull request #1380 from twpayne/vector-api-format-projection
[vector-api] Don't assume EPSG:4326 in ol.format
This commit is contained in:
@@ -2,7 +2,6 @@ goog.provide('ol.format.Format');
|
||||
goog.provide('ol.format.FormatType');
|
||||
|
||||
goog.require('goog.functions');
|
||||
goog.require('ol.proj');
|
||||
|
||||
|
||||
/**
|
||||
@@ -65,9 +64,7 @@ ol.format.Format.prototype.readGeometry = goog.abstractMethod;
|
||||
* @param {Document|Node|Object|string} source Source.
|
||||
* @return {ol.proj.Projection} Projection.
|
||||
*/
|
||||
ol.format.Format.prototype.readProjection = function(source) {
|
||||
return ol.proj.get('EPSG:4326');
|
||||
};
|
||||
ol.format.Format.prototype.readProjection = goog.abstractMethod;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,6 @@ goog.provide('ol.format.Text');
|
||||
goog.require('goog.asserts');
|
||||
goog.require('ol.format.Format');
|
||||
goog.require('ol.format.FormatType');
|
||||
goog.require('ol.proj');
|
||||
|
||||
|
||||
|
||||
@@ -101,9 +100,7 @@ ol.format.Text.prototype.readProjection = function(source) {
|
||||
* @protected
|
||||
* @return {ol.proj.Projection} Projection.
|
||||
*/
|
||||
ol.format.Text.prototype.readProjectionFromText = function(text) {
|
||||
return ol.proj.get('EPSG:4326');
|
||||
};
|
||||
ol.format.Text.prototype.readProjectionFromText = goog.abstractMethod;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,6 @@ goog.require('goog.asserts');
|
||||
goog.require('goog.dom.xml');
|
||||
goog.require('ol.format.Format');
|
||||
goog.require('ol.format.FormatType');
|
||||
goog.require('ol.proj');
|
||||
|
||||
|
||||
|
||||
@@ -156,9 +155,7 @@ ol.format.XML.prototype.readProjection = function(source) {
|
||||
* @protected
|
||||
* @return {ol.proj.Projection} Projection.
|
||||
*/
|
||||
ol.format.XML.prototype.readProjectionFromNode = function(node) {
|
||||
return ol.proj.get('EPSG:4326');
|
||||
};
|
||||
ol.format.XML.prototype.readProjectionFromNode = goog.abstractMethod;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user