Parse out-of-spec CRSs generated by GeoServer
This commit is contained in:
1 parent
7f9fd3db5e
commit
f9e0167b66
3 files changed
+32
-1
No files matched your search
@@ -370,6 +370,10 @@ ol.format.GeoJSON.prototype.readProjection = function(object) {
|
||||
if (goog.isDefAndNotNull(crs)) {
|
||||
if (crs.type == 'name') {
|
||||
return ol.proj.get(crs.properties.name);
|
||||
} else if (crs.type == 'EPSG') {
|
||||
// 'EPSG' is not part of the GeoJSON specification, but is generated by
|
||||
// GeoServer.
|
||||
return ol.proj.get('EPSG:' + crs.properties.code);
|
||||
} else {
|
||||
goog.asserts.fail();
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user