From 15ddab7d0ac52e730808e0325f11102748235903 Mon Sep 17 00:00:00 2001 From: Julien Enselme Date: Thu, 10 Aug 2017 19:06:38 +0200 Subject: [PATCH] Initialize hasZ in the constructor of GML3 --- src/ol/format/gml3.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ol/format/gml3.js b/src/ol/format/gml3.js index 429c7b0a12..b5d5b0696c 100644 --- a/src/ol/format/gml3.js +++ b/src/ol/format/gml3.js @@ -67,6 +67,13 @@ ol.format.GML3 = function(opt_options) { this.schemaLocation = options.schemaLocation ? options.schemaLocation : ol.format.GML3.schemaLocation_; + /** + * @private + * @type {boolean} + */ + this.hasZ = options.hasZ !== undefined ? + options.hasZ : false; + }; ol.inherits(ol.format.GML3, ol.format.GMLBase);