Move FeatureClass and FeatureLike to ol/Feature

This commit is contained in:
Kevin Schmidt
2018-10-01 08:59:55 -06:00
parent 7056eb8536
commit c5a9d5b0bc
4 changed files with 14 additions and 16 deletions

View File

@@ -6,16 +6,6 @@ import {assign} from '../obj.js';
import {get as getProjection, equivalent as equivalentProjection, transformExtent} from '../proj.js';
/**
* @typedef {typeof import("../Feature.js").default|typeof import("../render/Feature.js").default} FeatureClass
*/
/**
* @typedef {import("../Feature.js").default|import("../render/Feature.js").default} FeatureLike
*/
/**
* @typedef {Object} ReadOptions
* @property {import("../proj.js").ProjectionLike} [dataProjection] Projection of the data we are reading.
@@ -141,7 +131,7 @@ class FeatureFormat {
* @abstract
* @param {Document|Node|Object|string} source Source.
* @param {ReadOptions=} opt_options Read options.
* @return {FeatureLike} Feature.
* @return {import("../Feature.js").FeatureLike} Feature.
*/
readFeature(source, opt_options) {}
@@ -151,7 +141,7 @@ class FeatureFormat {
* @abstract
* @param {Document|Node|ArrayBuffer|Object|string} source Source.
* @param {ReadOptions=} opt_options Read options.
* @return {Array<FeatureLike>} Features.
* @return {Array<import("../Feature.js").FeatureLike>} Features.
*/
readFeatures(source, opt_options) {}