Move Options to ol/format/KML

This commit is contained in:
Tim Schaub
2018-03-11 22:11:36 -06:00
parent 2ce44e8fc8
commit 458383c7d3
3 changed files with 14 additions and 51 deletions

View File

@@ -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.<ol.style.Style>|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) {