Remove GeoJSON workaround for GeoServer
See #1569 See https://osgeo-org.atlassian.net/browse/GEOS-5996
This commit is contained in:
@@ -457,12 +457,6 @@ ol.format.GeoJSON.prototype.readProjectionFromObject = function(object) {
|
||||
if (crs) {
|
||||
if (crs.type == 'name') {
|
||||
projection = ol.proj.get(crs.properties.name);
|
||||
} else if (crs.type == 'EPSG') {
|
||||
// 'EPSG' is not part of the GeoJSON specification, but is generated by
|
||||
// GeoServer.
|
||||
// TODO: remove this when http://jira.codehaus.org/browse/GEOS-5996
|
||||
// is fixed and widely deployed.
|
||||
projection = ol.proj.get('EPSG:' + crs.properties.code);
|
||||
} else {
|
||||
ol.asserts.assert(false, 36); // Unknown SRS type
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user