From c16b941909948211fec1302b76ee9341b107c0c0 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Mon, 22 Apr 2013 22:37:20 +0200 Subject: [PATCH 1/2] Exporting KML parser options This is necessary because application developers need to be able to configure the KML parser. --- src/objectliterals.jsdoc | 12 ++++++++++++ src/ol/parser/kml.js | 9 --------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index 1c9b194871..115c52e9bd 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -223,6 +223,18 @@ * @property {boolean|undefined} visible Visibility. Default is true (visible). */ +/** + * @typedef {Object} ol.parser.KMLOptions + * @property {boolean|undefined} extractAttributes Should we extract attributes + * from the KML? Default is `true´. + * @property {boolean|undefined} extractStyles Should we extract styles from the + * KML? Default is `false`. + * @property {number|undefined} dimension Create geometries with `dimension` + * dimensions. Default is 3. + * @property {number|undefined} maxDepth Maximum depth to follow network links. + * Default is 0, which means we don't follow network links at all. + */ + /** * @typedef {Object} ol.source.BingMapsOptions * @property {string|undefined} culture Culture. diff --git a/src/ol/parser/kml.js b/src/ol/parser/kml.js index 93566c42f5..f933a999c9 100644 --- a/src/ol/parser/kml.js +++ b/src/ol/parser/kml.js @@ -32,15 +32,6 @@ goog.require('ol.style.Polygon'); goog.require('ol.style.PolygonLiteral'); -/** - * @typedef {{extractAttributes: (boolean|undefined), - * extractStyles: (boolean|undefined), - * dimension: (number|undefined), - * maxDepth: (number|undefined)}} - */ -ol.parser.KMLOptions; - - /** * @constructor From 8515e30ad8c10f70612424633bf0c916d118847e Mon Sep 17 00:00:00 2001 From: ahocevar Date: Mon, 22 Apr 2013 22:47:13 +0200 Subject: [PATCH 2/2] Making the linter happy ... although jsdoc files are none of the linter's business. --- src/objectliterals.jsdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index 115c52e9bd..f78ae1f386 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -232,7 +232,7 @@ * @property {number|undefined} dimension Create geometries with `dimension` * dimensions. Default is 3. * @property {number|undefined} maxDepth Maximum depth to follow network links. - * Default is 0, which means we don't follow network links at all. + * Default is 0, which means we don't follow network links at all. */ /**