Mark properties as nullable
This commit is contained in:
@@ -98,7 +98,7 @@ class Geolocation extends BaseObject {
|
|||||||
/**
|
/**
|
||||||
* The unprojected (EPSG:4326) device position.
|
* The unprojected (EPSG:4326) device position.
|
||||||
* @private
|
* @private
|
||||||
* @type {import("./coordinate.js").Coordinate}
|
* @type {?import("./coordinate.js").Coordinate}
|
||||||
*/
|
*/
|
||||||
this.position_ = null;
|
this.position_ = null;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ class ImageWrapper extends ImageBase {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {function():void}
|
* @type {?function():void}
|
||||||
*/
|
*/
|
||||||
this.unlisten_ = null;
|
this.unlisten_ = null;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -46,7 +46,7 @@ class ImageTile extends Tile {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {function():void}
|
* @type {?function():void}
|
||||||
*/
|
*/
|
||||||
this.unlisten_ = null;
|
this.unlisten_ = null;
|
||||||
|
|
||||||
|
|||||||
@@ -31,13 +31,13 @@ class MapBrowserEvent extends MapEvent {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The map pixel relative to the viewport corresponding to the original browser event.
|
* The map pixel relative to the viewport corresponding to the original browser event.
|
||||||
* @type {import("./pixel.js").Pixel}
|
* @type {?import("./pixel.js").Pixel}
|
||||||
*/
|
*/
|
||||||
this.pixel_ = null;
|
this.pixel_ = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The coordinate in the user projection corresponding to the original browser event.
|
* The coordinate in the user projection corresponding to the original browser event.
|
||||||
* @type {import("./coordinate.js").Coordinate}
|
* @type {?import("./coordinate.js").Coordinate}
|
||||||
*/
|
*/
|
||||||
this.coordinate_ = null;
|
this.coordinate_ = null;
|
||||||
|
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ class PluggableMap extends BaseObject {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {Array<import("./events.js").EventsKey>}
|
* @type {?Array<import("./events.js").EventsKey>}
|
||||||
*/
|
*/
|
||||||
this.layerGroupPropertyListenerKeys_ = null;
|
this.layerGroupPropertyListenerKeys_ = null;
|
||||||
|
|
||||||
@@ -292,7 +292,7 @@ class PluggableMap extends BaseObject {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {Array<import("./events.js").EventsKey>}
|
* @type {?Array<import("./events.js").EventsKey>}
|
||||||
*/
|
*/
|
||||||
this.keyHandlerKeys_ = null;
|
this.keyHandlerKeys_ = null;
|
||||||
|
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ class MousePosition extends Control {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {import("../proj/Projection.js").default}
|
* @type {?import("../proj/Projection.js").default}
|
||||||
*/
|
*/
|
||||||
this.mapProjection_ = null;
|
this.mapProjection_ = null;
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class ZoomToExtent extends Control {
|
|||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {import("../extent.js").Extent}
|
* @type {?import("../extent.js").Extent}
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
this.extent = options.extent ? options.extent : null;
|
this.extent = options.extent ? options.extent : null;
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ class TopoJSON extends JSONFeature {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {Array<string>}
|
* @type {?Array<string>}
|
||||||
*/
|
*/
|
||||||
this.layers_ = options.layers ? options.layers : null;
|
this.layers_ = options.layers ? options.layers : null;
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ class DragAndDrop extends Interaction {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {Array<import("../events.js").EventsKey>}
|
* @type {?Array<import("../events.js").EventsKey>}
|
||||||
*/
|
*/
|
||||||
this.dropListenKeys_ = null;
|
this.dropListenKeys_ = null;
|
||||||
|
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ class ReprojTile extends Tile {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {Array<import("../events.js").EventsKey>}
|
* @type {?Array<import("../events.js").EventsKey>}
|
||||||
*/
|
*/
|
||||||
this.sourcesListenerKeys_ = null;
|
this.sourcesListenerKeys_ = null;
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class IconImage extends EventTarget {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {function():void}
|
* @type {?function():void}
|
||||||
*/
|
*/
|
||||||
this.unlisten_ = null;
|
this.unlisten_ = null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user