srsName should be optional in BBOX

This commit is contained in:
Bart van den Eijnden
2013-10-22 16:24:07 +02:00
parent 67f00b37e8
commit dc58d4e562
2 changed files with 6 additions and 3 deletions

View File

@@ -54,7 +54,8 @@ ol.parser.ogc.GML_v2 = function(opt_options) {
for (var i = 0; i < numCoordinates; ++i) {
var coord = coordinates[i];
var part = goog.array.concat(coord);
if (this.axisOrientation.substr(0, 2) !== 'en') {
if (goog.isDef(this.axisOrientation) &&
this.axisOrientation.substr(0, 2) !== 'en') {
part[0] = coord[1];
part[1] = coord[0];
}