From 64060795ce6503b8f24aa61e65331865000b280a Mon Sep 17 00:00:00 2001 From: Bart van den Eijnden Date: Tue, 4 Mar 2014 16:14:31 +0100 Subject: [PATCH] Use const for schema location --- src/ol/format/gmlformat.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/ol/format/gmlformat.js b/src/ol/format/gmlformat.js index 486cfaebc5..e3ebc9c84a 100644 --- a/src/ol/format/gmlformat.js +++ b/src/ol/format/gmlformat.js @@ -22,6 +22,16 @@ goog.require('ol.proj'); goog.require('ol.xml'); +/** + * @const + * @type {string} + * @private + */ +ol.format.GML.schemaLocation_ = 'http://www.opengis.net/gml ' + + 'http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/' + + '1.0.0/gmlsf.xsd'; + + /** * @constructor @@ -85,9 +95,7 @@ ol.format.GML = function(opt_options) { * @type {string} */ this.schemaLocation_ = goog.isDef(options.schemaLocation) ? - options.schemaLocation : ('http://www.opengis.net/gml ' + - 'http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/' + - '1.0.0/gmlsf.xsd'); + options.schemaLocation : ol.format.GML.schemaLocation_; goog.base(this); };