Class ObliqueCollection

baseclass for all Objects

Hierarchy

Accessors

  • get className(): string
  • Returns string

  • get imageFeatureSource(): VectorSource<Geometry>
  • A vector source of all image currently loaded for this collection in mercator. The id is the image name. The feature has a "viewDirection" property.

    Returns VectorSource<Geometry>

  • get tileFeatureSource(): VectorSource<Geometry>
  • A vector source of all tiles available to this collection in mercator. The feature have a "state" property, the id is the string tile coordinate "z/x/y" of the tile

    Returns VectorSource<Geometry>

Constructors

Methods

  • Returns the state of the data for a given location an all underlying data sources

    Parameters

    • mercatorCoordinate: Coordinate

      coordinate in web mercator

    Returns DataState

  • Returns the closest image for the given location and direction (location and image extent must not overlap). Returns undefined, if there are no images for the given direction

    Parameters

    • mercatorCoordinate: Coordinate

      coordinate in web mercator

    • direction: ObliqueViewDirection

      the preferred direction if no image in that direction can be found, other direction will be queried

    Returns undefined | ObliqueImage

  • Gets all available tile coordinates across all data sets, including their loaded state. Return value is an object, where the key is the tile coordinate in z/x/y and the value is the data state

    Returns Record<string, DataState>

  • Checks, if an image exists for a given coordinated

    Parameters

    Returns Promise<boolean>

  • Loads the image adjacent to a given image in a certain direction from the provided image. Returns undefined if there are no images in that direction or there are no images for the direction of the provided image.

    Parameters

    • image: ObliqueImage
    • heading: number

      0 = east, PI / 2 = north, PI = west and PI * 1.5 = south

    • Optional deviation: number = ...

    Returns Promise<undefined | ObliqueImage>

  • Loads data for a given mercator Coordinate

    Parameters

    • mercatorCoordinate: Coordinate

      coordinate in web mercator

    Returns Promise<void>

  • Loads all data for a location and then returns the closest image for the given location and direction (location and image extent must not overlap). Returns undefined, if there are no images for the given direction

    Parameters

    Returns Promise<undefined | ObliqueImage>

Properties

[moduleIdSymbol]?: string
_dataSets: ObliqueDataSet[] = []

Maps urls to general infos & cameras

_destroyed: VcsEvent<void> = ...
_directionTrees: Map<ObliqueViewDirection, default<ObliqueImageRbushItem>> = ...

Maps each direction to an RTree

_imageFeatureSource: null | VectorSource<Geometry> = null
_images: Map<string, ObliqueImage> = ...

Maps image name to image

_loaded: boolean = false
_loadingPromise: undefined | Promise<void> = undefined
_tileFeatureSource: null | VectorSource<Geometry> = null
datasourceId?: string

Optional Id to synchronize with the vcPublisher Datasources. This can also be used to track a connection to other sources of data.

imagesLoaded: VcsEvent<ObliqueImage[]> = ...

Event raised when images are loaded. Is passed an Array of ObliqueImages as its only argument.

isDestroyed: boolean
name: string

unique Name

properties: Record<string, unknown>
viewOptions: ObliqueViewOptions

Generated using TypeDoc