diff --git a/externs/olx.js b/externs/olx.js index 4bc33d3092..da2f7a76fc 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -5,47 +5,6 @@ let olx; -/** - * @typedef {{extractStyles: (boolean|undefined), - * defaultStyle: (Array.|undefined), - * showPointNames: (boolean|undefined), - * writeStyles: (boolean|undefined)}} - */ -olx.format.KMLOptions; - - -/** - * Extract styles from the KML. Default is `true`. - * @type {boolean|undefined} - * @api - */ -olx.format.KMLOptions.prototype.extractStyles; - - -/** - * Show names as labels for placemarks which contain points. Default is `true`. - * @type {boolean|undefined} - * @api - */ -olx.format.KMLOptions.prototype.showPointNames; - - -/** - * Default style. The default default style is the same as Google Earth. - * @type {Array.|undefined} - * @api - */ -olx.format.KMLOptions.prototype.defaultStyle; - - -/** - * Write styles into KML. Default is `true`. - * @type {boolean|undefined} - * @api - */ -olx.format.KMLOptions.prototype.writeStyles; - - /** * @typedef {{featureNS: (Object.|string|undefined), * featureType: (Array.|string|undefined), diff --git a/externs/xol.js b/externs/xol.js index 9806e8f51f..34e5387d4e 100644 --- a/externs/xol.js +++ b/externs/xol.js @@ -1,13 +1,4 @@ -/** - * @typedef {Object} format_KMLOptions - * @property {boolean|undefined} extractStyles Extract styles from the KML. Default is `true`. - * @property {boolean|undefined} showPointNames Show names as labels for placemarks which contain points. Default is `true`. - * @property {Array.|undefined} defaultStyle Default style. The default default style is the same as Google Earth. - * @property {boolean|undefined} writeStyles Write styles into KML. Default is `true`. - */ - - /** * @typedef {Object} format_GMLOptions * @property {Object.|string|undefined} featureNS Feature namespace. If not defined will be derived from GML. If multiple diff --git a/src/ol/format/KML.js b/src/ol/format/KML.js index 05672657fb..bd06287317 100644 --- a/src/ol/format/KML.js +++ b/src/ol/format/KML.js @@ -227,6 +227,19 @@ function createStyleDefaults() { } + +/** + * @typedef {Object} Options + * @property {boolean|undefined} extractStyles Extract styles from the KML. + * Default is `true`. + * @property {boolean|undefined} showPointNames Show names as labels for placemarks + * which contain points. Default is `true`. + * @property {Array.|undefined} defaultStyle Default style. The + * default default style is the same as Google Earth. + * @property {boolean|undefined} writeStyles Write styles into KML. Default is `true`. + */ + + /** * @classdesc * Feature format for reading and writing data in the KML format. @@ -236,7 +249,7 @@ function createStyleDefaults() { * * @constructor * @extends {ol.format.XMLFeature} - * @param {olx.format.KMLOptions=} opt_options Options. + * @param {module:ol/format/KML~Options=} opt_options Options. * @api */ const KML = function(opt_options) {