From 177188d732295dc0fa194b81ef22d62c07da3844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 26 Jun 2014 15:12:12 +0200 Subject: [PATCH] Add ol.format.KML.SCHEMA_LOCATION_ --- src/ol/format/kmlformat.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ol/format/kmlformat.js b/src/ol/format/kmlformat.js index acfde596cf..397df12db3 100644 --- a/src/ol/format/kmlformat.js +++ b/src/ol/format/kmlformat.js @@ -165,13 +165,11 @@ ol.format.KML.NAMESPACE_URIS_ = [ /** * @const - * @type {Array.} + * @type {string} * @private */ -ol.format.KML.XSD_URIS_ = [ - 'http://www.opengis.net/kml/2.2', - 'https://developers.google.com/kml/schema/kml22gx.xsd' -]; +ol.format.KML.SCHEMA_LOCATION_ = 'http://www.opengis.net/kml/2.2 ' + + 'https://developers.google.com/kml/schema/kml22gx.xsd'; /** @@ -2534,7 +2532,7 @@ ol.format.KML.prototype.writeFeaturesNode = function(features) { ol.format.KML.GX_NAMESPACE_URIS_[0]); ol.xml.setAttributeNS(kml, xmlnsUri, 'xmlns:xsi', xmlSchemaInstanceUri); ol.xml.setAttributeNS(kml, xmlSchemaInstanceUri, 'xsi:schemaLocation', - ol.format.KML.XSD_URIS_.join(' ')); + ol.format.KML.SCHEMA_LOCATION_); var /** @type {ol.xml.NodeStackItem} */ context = {node: kml}; var properties = {};