Geolocation, Overlay, View

This commit is contained in:
Simon Seyock
2021-06-23 14:26:52 +02:00
committed by Andreas Hocevar
parent 7fc664c3fe
commit ba9bfca9d5
3 changed files with 22 additions and 0 deletions

View File

@@ -91,6 +91,14 @@ class Geolocation extends BaseObject {
constructor(opt_options) {
super();
/***
* @type {import("./Observable").OnSignature<import("./ObjectEventType").Types|
* 'change:accuracy'|'change:accuracyGeometry'|'change:altitude'|'change:altitudeAccuracy'|'change:heading'|
* 'change:position'|'change:projection'|'change:speed'|'change:tracking'|'change:trackingOptions', import("./Object").ObjectEvent> &
* import("./Observable").OnSignature<'error', GeolocationError>}
*/
this.on;
const options = opt_options || {};
/**

View File

@@ -110,6 +110,13 @@ class Overlay extends BaseObject {
constructor(options) {
super();
/***
* @type {import("./Observable").OnSignature<import("./Observable").EventTypes, import("./events/Event.js").default> &
* import("./Observable").OnSignature<import("./ObjectEventType").Types|
* 'change:element'|'change:map'|'change:offset'|'change:position'|'change:positioning', import("./Object").ObjectEvent>}
*/
this.on;
/**
* @protected
* @type {Options}

View File

@@ -297,6 +297,13 @@ class View extends BaseObject {
constructor(opt_options) {
super();
/***
* @type {import("./Observable").OnSignature<import("./Observable").EventTypes, import("./events/Event.js").default> &
* import("./Observable").OnSignature<import("./ObjectEventType").Types|
* 'change:center'|'change:resolution'|'change:rotation', import("./Object").ObjectEvent>}
*/
this.on;
const options = assign({}, opt_options);
/**