Merge pull request #4510 from GeoCat/master
Adding a check just in case the projection is not defined/supported
This commit is contained in:
@@ -64,7 +64,9 @@ ol.format.GML2.prototype.readFlatCoordinates_ = function(node, objectStack) {
|
|||||||
var axisOrientation = 'enu';
|
var axisOrientation = 'enu';
|
||||||
if (containerSrs) {
|
if (containerSrs) {
|
||||||
var proj = ol.proj.get(containerSrs);
|
var proj = ol.proj.get(containerSrs);
|
||||||
axisOrientation = proj.getAxisOrientation();
|
if (proj) {
|
||||||
|
axisOrientation = proj.getAxisOrientation();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
var coords = s.split(/[\s,]+/);
|
var coords = s.split(/[\s,]+/);
|
||||||
// The "dimension" attribute is from the GML 3.0.1 spec.
|
// The "dimension" attribute is from the GML 3.0.1 spec.
|
||||||
|
|||||||
Reference in New Issue
Block a user