Move Options to ol/format/KML
This commit is contained in:
@@ -5,47 +5,6 @@
|
|||||||
let olx;
|
let olx;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @typedef {{extractStyles: (boolean|undefined),
|
|
||||||
* defaultStyle: (Array.<ol.style.Style>|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.<ol.style.Style>|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, string>|string|undefined),
|
* @typedef {{featureNS: (Object.<string, string>|string|undefined),
|
||||||
* featureType: (Array.<string>|string|undefined),
|
* featureType: (Array.<string>|string|undefined),
|
||||||
|
|||||||
@@ -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.<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`.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {Object} format_GMLOptions
|
* @typedef {Object} format_GMLOptions
|
||||||
* @property {Object.<string, string>|string|undefined} featureNS Feature namespace. If not defined will be derived from GML. If multiple
|
* @property {Object.<string, string>|string|undefined} featureNS Feature namespace. If not defined will be derived from GML. If multiple
|
||||||
|
|||||||
+14
-1
@@ -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
|
* @classdesc
|
||||||
* Feature format for reading and writing data in the KML format.
|
* Feature format for reading and writing data in the KML format.
|
||||||
@@ -236,7 +249,7 @@ function createStyleDefaults() {
|
|||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.format.XMLFeature}
|
* @extends {ol.format.XMLFeature}
|
||||||
* @param {olx.format.KMLOptions=} opt_options Options.
|
* @param {module:ol/format/KML~Options=} opt_options Options.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
const KML = function(opt_options) {
|
const KML = function(opt_options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user