Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FourdCesiumHelper

Helper class for Cesium. Contains methods to zoom to a location and add/remove a model to the map.

You can play with a(n) (angular or react) demo on stackblitz.

Hierarchy

  • FourdCesiumHelper

Implements

Index

Constructors

constructor

Properties

Private _originalTerrainProvider

_originalTerrainProvider: any

Private annotationDataSource

annotationDataSource: any

Private annotationLabels

annotationLabels: any

Private dziDatasource

dziDatasource: any

fourdD

fourdD: FourDService

Private plotCache

plotCache: object

Type declaration

viewer

viewer: any

Methods

Private _addPlotable

Private _delPlotable

  • Removes the model from map

    Parameters

    Returns void

addPlottable

clearPlottables

  • clearPlottables(): void

getAuthenticatedUrl

  • getAuthenticatedUrl(p: PlottableModel<any>, file: string, tier?: number): Promise<string>
  • If the server supports it, get a token suffix that may be a remote storage server (eg S3 or Cloudfront URL) Cesium can query resources directly rather than hit application server

    Parameters

    • p: PlottableModel<any>
    • file: string

      Name of file

    • Default value tier: number = 0

      Applicable when Cloudfront is set up. Cesium allows request from one url at a time, so by providing a 'tier' which represents a different url, we can better conduct traffic. 0: default/Terrain Tiles, 1: Tile Map Service (tms), 2: 3D Tiles

    Returns Promise<string>

getCesiumObjectFor

  • Returns the respective CesiumPlottableReference object of a given PlottableModel object

    deprecated

    use #getMapObjectFor instead

    Parameters

    Returns any

getMapObjectFor

removePlottable

sendCameraTo

  • sendCameraTo(t: PlottableModel<any>, duration?: number, args?: any): Observable<any>
  • Parameters

    • t: PlottableModel<any>
    • Default value duration: number = 500
    • Optional args: any

    Returns Observable<any>

Generated using TypeDoc