Improve some nullable map types

Closes #13326
This commit is contained in:
EvertEt
2022-02-04 09:53:58 +01:00
parent 5cfb634d89
commit 15de4bb5ab
8 changed files with 22 additions and 17 deletions

View File

@@ -212,9 +212,10 @@ class MousePosition extends Control {
/**
* Remove the control from its current map and attach it to the new map.
* Pass `null` to just remove the control from the current map.
* Subclasses may set up event handlers to get notified about changes to
* the map here.
* @param {import("../PluggableMap.js").default} map Map.
* @param {import("../PluggableMap.js").default|null} map Map.
* @api
*/
setMap(map) {