diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index 1c9b194871..f78ae1f386 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 7102a23218..16a0d53a36 100644 --- a/src/ol/parser/kml.js +++ b/src/ol/parser/kml.js @@ -33,15 +33,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