Whether the map is active or not
The layer collection of this map. LayerCollections can be shared among maps. When adding the map to a , the layer collection of the will be set. When setting the layer collection, the destroyLayerCollection flag is automatically set to false.
Whether the map is loading or not
Whether api calls like gotoViewpoint & setting of oblique images are disabled
Whether movement related key events like the arrow keys for navigating in map are disabled.
Whether movement related pointer events for navigating in map are disabled.
The panorama camera controller controlling the camera movement. Throws if not properly initialized
The panorama image view controlling image loading and rendering. Throws if not properly initialized
An event raised on the maps post render
Internal API. throws if not properly initialized
The splitPosition should always be aligned with the mapCollection's splitPosition. Use mapCollection to change splitPosition.
The currently set HTML element in which to render the map
Static
classAdds a visualization to the visualizations map for its layer. The visualization must be valid, use validateVisualization first
Determines whether this map can show this viewpoint. Returns true in any other map then ObliqueMap
Returns the closest image to the given coordinate within the given distance from all the datasets in the panorama datasets collection.
getClosestImage for the given viewpoint. Prefers the ground position
Get all visualizations added to this map.
Gets the visualizations for a specific layer
Gets the visualizations of a vector cluster group
Sets the current image to the closest image to the given coordinate. Unsets the current image, if there is no image within the default distance.
is called if a layer changes its position in the layerCollection.
Removes a visualization
Sets the current image to the given panorama image. If the image is undefined, the current image is cleared.
Optional
image: PanoramaImageValidates a visualization. A visualization must have the vcsLayeName symbol set and a layer with said name must be part of the maps layerCollection.
Static
getOptional
[moduleReadonly
currentThe event raised when the current image changes. Can be raised with undefined if the current image is cleared or a viewpoint fails to load an image.
Whether to destroy the layerCollection when destroying the map. Defaults to false if passing in a LayerCollection and true if a LayerCollection is created. Is set to false, when setting a different LayerCollection.
The name of a map to fall back on, if this map cant show a viewpoint
instead of using a fallback map, this map will fail to activate if another map is active and the current viewpoint cannot be shown
Readonly
nameunique Name
Event raised then the map has a pointer interaction. Raises MapEvent.
Event raised when the maps state changes. Is passed the MapState as its only argument.
Event raised when a visualization is added to the map
Event raised when a visualization is removed from the map
Map Base Class, each different map is derived from this abstract base class.