From 8efab3d4be4644c9f160e164c854d83594487649 Mon Sep 17 00:00:00 2001 From: Florent gravin Date: Tue, 23 Sep 2014 12:21:45 +0200 Subject: [PATCH] Make protected some shared methods or objects --- src/ol/format/gml/base.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ol/format/gml/base.js b/src/ol/format/gml/base.js index ef5222a40c..ad6b7961d3 100644 --- a/src/ol/format/gml/base.js +++ b/src/ol/format/gml/base.js @@ -89,11 +89,11 @@ ol.format.GML = function(opt_options) { options.multiSurface : true; /** - * @private + * @protected * @type {string} */ - this.schemaLocation_ = goog.isDef(options.schemaLocation) ? - options.schemaLocation : ol.format.GML.schemaLocation_; + this.schemaLocation = goog.isDef(options.schemaLocation) ? + options.schemaLocation : this.constructor.schemaLocation_; goog.base(this); }; @@ -1051,9 +1051,9 @@ ol.format.GML.SEGMENTS_PARSERS_ = { /** * @const * @type {Object.>} - * @private + * @protected */ -ol.format.GML.RING_PARSERS_ = { +ol.format.GML.RING_PARSERS = { 'http://www.opengis.net/gml' : { 'LinearRing': ol.xml.makeReplacer( ol.format.GML.prototype.readFlatLinearRing_) @@ -1779,7 +1779,7 @@ ol.format.GML.prototype.writeFeaturesNode = function(features, opt_options) { var node = ol.xml.createElementNS('http://www.opengis.net/gml', 'featureMembers'); ol.xml.setAttributeNS(node, 'http://www.w3.org/2001/XMLSchema-instance', - 'xsi:schemaLocation', this.schemaLocation_); + 'xsi:schemaLocation', this.schemaLocation); var context = { srsName: this.srsName_, curve: this.curve_,