Class PanoramaMap

Map Base Class, each different map is derived from this abstract base class.

Hierarchy (view full)

Accessors

  • get active(): boolean
  • Whether the map is active or not

    Returns boolean

  • get className(): string
  • Returns string

  • get layerCollection(): LayerCollection
  • 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.

    Returns LayerCollection

  • set layerCollection(layerCollection): void
  • Parameters

    Returns void

  • get loading(): boolean
  • Whether the map is loading or not

    Returns boolean

  • get movementApiCallsDisabled(): boolean
  • Whether api calls like gotoViewpoint & setting of oblique images are disabled

    Returns boolean

  • get movementDisabled(): boolean
  • Returns boolean

    use disableMovement() for setting and movementApiCallsDisabled, movementKeyEventsDisabled and movementPointerEventsDisabled getter

  • set movementDisabled(prevent): void
  • Parameters

    • prevent: boolean

    Returns void

  • get movementKeyEventsDisabled(): boolean
  • Whether movement related key events like the arrow keys for navigating in map are disabled.

    Returns boolean

  • get movementPointerEventsDisabled(): boolean
  • Whether movement related pointer events for navigating in map are disabled.

    Returns boolean

  • get screenSpaceEventHandler(): ScreenSpaceEventHandler
  • Internal API. throws if not properly initialized

    Returns ScreenSpaceEventHandler

  • get splitPosition(): number
  • Returns number

  • set splitPosition(position): void
  • The splitPosition should always be aligned with the mapCollection's splitPosition. Use mapCollection to change splitPosition.

    Parameters

    • position: number

    Returns void

  • get target(): null | HTMLElement
  • The currently set HTML element in which to render the map

    Returns null | HTMLElement

Constructors

Methods

  • activates the map, if necessary initializes the map. Once the promise resolves, the map can still be inactive, if deactivate was called while the map was activating.

    Returns Promise<void>

  • Internal API used to register visualizations from layer implementations

    Parameters

    • primitiveCollection: PrimitiveCollection | Cesium3DTileset

    Returns void

  • Adds a visualization to the visualizations map for its layer. The visualization must be valid, use validateVisualization first

    Parameters

    Returns void

  • prevent all movement, including api calls (gotoViewpoint, setting oblique images), key and pointer events.

    Parameters

    • prevent: boolean | DisableMapControlOptions

    Returns void

  • Access to the raw cesium widget for finer control. Throws if not properly initialized.

    Returns CesiumWidget

  • Returns the closest image to the given coordinate within the given distance from all the datasets in the panorama datasets collection.

    Parameters

    • coordinate: Coordinate
    • maxDistance: number = 200

    Returns Promise<undefined | PanoramaImage>

  • Resolution in meters per pixe

    Parameters

    • _coordinate: Coordinate

      coordinate in mercator for which to determine resolution. only required in 3D

    Returns number

  • 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.

    Parameters

    Returns Promise<void>

  • Internal API to unregister the visualization for a layers implementation

    Parameters

    • primitiveCollection: PrimitiveCollection | Cesium3DTileset

    Returns void

  • Sets the current image to the given panorama image. If the image is undefined, the current image is cleared.

    Parameters

    Returns void

  • Validates a visualization. A visualization must have the vcsLayeName symbol set and a layer with said name must be part of the maps layerCollection.

    Parameters

    Returns item is VisualisationType & {
        [vcsLayerName]?: string;
        [vectorClusterGroupName]?: string;
    }

Properties

[moduleIdSymbol]?: string
currentImageChanged: VcsEvent<undefined | PanoramaImage> = ...

The 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.

destroyLayerCollection: boolean

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.

fallbackMap: null | string

The name of a map to fall back on, if this map cant show a viewpoint

fallbackToCurrentMap: boolean

instead of using a fallback map, this map will fail to activate if another map is active and the current viewpoint cannot be shown

initialized: boolean
isDestroyed: boolean
mapElement: HTMLElement
movementDisabledChanged: VcsEvent<DisableMapControlOptions>
name: string

unique Name

pointerInteractionEvent: VcsEvent<MapEvent>

Event raised then the map has a pointer interaction. Raises MapEvent.

properties: Record<string, unknown>
stateChanged: VcsEvent<MapState>

Event raised when the maps state changes. Is passed the MapState as its only argument.

visualizationAdded: VcsEvent<VisualisationType>

Event raised when a visualization is added to the map

visualizationRemoved: VcsEvent<VisualisationType>

Event raised when a visualization is removed from the map