Add Collection and Feature.

This commit is contained in:
Simon Seyock authored and Andreas Hocevar committed 2021-07-10 11:28:47 +02:00
1 parent baf9ee6a93
commit ff42d03f31
2 files changed
+13

No files matched your search

+7
View File
@@ -71,6 +71,13 @@ class Collection extends BaseObject {
constructor(opt_array, opt_options) {
super();
/***
* @type {import("./Observable").OnSignature<import("./Observable").EventTypes, import("./events/Event.js").default> &
* import("./Observable").OnSignature<import("./ObjectEventType").Types|'change:length', import("./Object").ObjectEvent> &
* import("./Observable").OnSignature<'add'|'remove', CollectionEvent>}
*/
this.on;
const options = opt_options || {};
/**
+6
View File
@@ -69,6 +69,12 @@ class Feature extends BaseObject {
constructor(opt_geometryOrProperties) {
super();
/***
* @type {import("./Observable").OnSignature<import("./Observable").EventTypes, import("./events/Event.js").default> &
* import("./Observable").OnSignature<import("./ObjectEventType").Types|'change:geometry', import("./Object").ObjectEvent>}
*/
this.on;
/**
* @private
* @type {number|string|undefined}