From cde4ef435c39d34ae7c97b3d1ed7e8265565443f Mon Sep 17 00:00:00 2001 From: ahocevar Date: Thu, 16 May 2013 15:14:38 +0200 Subject: [PATCH] Adding another option --- src/objectliterals.jsdoc | 1 + src/ol/parser/kml.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index ee19686fc9..fcc9b895f0 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -303,6 +303,7 @@ * KML? Default is `false`. * @property {number|undefined} maxDepth Maximum depth to follow network links. * Default is 0, which means we don't follow network links at all. + * @property {Array.} trackAttributes Track attributes to parse. */ /** diff --git a/src/ol/parser/kml.js b/src/ol/parser/kml.js index ebbb58410b..8be3b5f61a 100644 --- a/src/ol/parser/kml.js +++ b/src/ol/parser/kml.js @@ -54,6 +54,8 @@ ol.parser.KML = function(opt_options) { // TODO re-evaluate once shared structures support 3D this.dimension = goog.isDef(options.dimension) ? options.dimension : 3; this.maxDepth = goog.isDef(options.maxDepth) ? options.maxDepth : 0; + this.trackAttributes = goog.isDef(options.trackAttributes) ? + options.trackAttributes : null; this.defaultNamespaceURI = 'http://www.opengis.net/kml/2.2'; this.readers = {