Merge pull request #5508 from tsauerwein/compiler-properties

Fix problems with ol.format.WFS in compiled mode
This commit is contained in:
Frédéric Junod
2016-06-27 11:59:13 +02:00
committed by GitHub
2 changed files with 36 additions and 30 deletions

View File

@@ -55,7 +55,7 @@ ol.format.GML2.schemaLocation_ = ol.format.GMLBase.GMLNS +
*/
ol.format.GML2.prototype.readFlatCoordinates_ = function(node, objectStack) {
var s = ol.xml.getAllTextContent(node, false).replace(/^\s*|\s*$/g, '');
var context = objectStack[0];
var context = /** @type {ol.XmlNodeStackItem} */ (objectStack[0]);
goog.asserts.assert(goog.isObject(context), 'context should be an Object');
var containerSrs = context['srsName'];
var containerDimension = node.parentNode.getAttribute('srsDimension');