Move ReadOptions to ol/format/Feature

This commit is contained in:
Tim Schaub
2018-03-11 15:51:16 -06:00
parent b1725ef1e0
commit 4eb6603af7
20 changed files with 70 additions and 107 deletions

View File

@@ -1678,7 +1678,7 @@ KML.prototype.readPlacemark_ = function(node, objectStack) {
if (id !== null) {
feature.setId(id);
}
const options = /** @type {olx.format.ReadOptions} */ (objectStack[0]);
const options = /** @type {module:ol/format/Feature~ReadOptions} */ (objectStack[0]);
const geometry = object['geometry'];
if (geometry) {
@@ -1768,7 +1768,7 @@ KML.prototype.readSharedStyleMap_ = function(node, objectStack) {
*
* @function
* @param {Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options.
* @param {module:ol/format/Feature~ReadOptions=} opt_options Read options.
* @return {ol.Feature} Feature.
* @api
*/
@@ -1799,7 +1799,7 @@ KML.prototype.readFeatureFromNode = function(node, opt_options) {
*
* @function
* @param {Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options.
* @param {module:ol/format/Feature~ReadOptions=} opt_options Read options.
* @return {Array.<ol.Feature>} Features.
* @api
*/