The currently active map
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
The key by which to check uniqueness against. undefined if no uniqueness constraint is set.
Protected
_checkPrivate
_getPrivate
_getProtected
_removeinternal 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.
Private
_setAdds 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
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.
Private
_activeProtected
_arrayPrivate
_cachedif the active map is removed the last viewpoint is cached for the next mapActivation.
Private
_layerCollection of layers shared amongst the maps within this collection, layers will be rendered if supported on the currently active map.
Private
_mapPrivate
_postPrivate
_postPrivate
_splitPrivate
_targetEvent 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.
Generated using TypeDoc
A generic array based collection. Implements the Symbol.iterator (e.g. [...collection])