The currently active map
Event raised when exclusive map controls are changed. If the Id is empty the default map controls have been reinstated
The id of the current exclusive map controls owner.
The current layer collection
Set the layer collection for these maps.
Raised on the active maps post render event
The current splitPosition
Set the splitPosition for these maps.
The currently set HTML element in which to render the maps
Protected
_checkProtected
_removeProtected
internal remove function, to remove an item from the collection, does not raise an event.
returns the index of the removed item or -1 if the item has not been found.
Adds a map to the collection. This will set the collections target and the collections on the map. It will add map event listeners and pass them to the event handler of this collection.
Returns an item identified by the unique constraint key. Returns null, if there is no uniqueness constraint.
the value to test against. does a shallow comparison, if the passed a non-atomic value
Returns all maps of a specified type
Equivalent to Array.prototype.includes
Removes an item from the collection
Manages the disabling of map navigation controls. By calling this function the map navigation controls passed in the options are disabled. The remove function passed by the previous caller is executed.
which of the movement controls should be disabled.
the callback for when the interaction is forcefully removed.
Optional
id: string | symbolan optional id to identify the owner of the exclusive map controls.
function to reset map controls.
Sets the active map. This will 1. get the current viewpoint of an acitve map (if one is set) 2. determine that the map to be activated can show this viewpoint or has no fallback map set and 3. activates the map 4. calls gotoViewpoint with the previous maps viewpoint
Static
fromCreates a MapCollection from an iterable of maps, such as an Array.
Protected
_arrayEvent raised if an item is added. Is passed the added item.
Manages the clipping object for the maps in this collection.
The map pointer event handler. The EventHandler is shared amongst all maps within the collection.
Called, when a map (typically an oblique map) cannot show the current viewpoint. Is passed the map which cannot show the current viewpoint.
Called, if a map fails to initialize. The map causing the error will be removed from the collection.
Called, when a map is activated. Is passed the activated map.
Event raised if an item is removed. Is passed the removed item.
Event raised when the maps split position changes. It passed the position as its only argument.
A generic array based collection. Implements the Symbol.iterator (e.g. [...collection])