Plugin for authenticating requests to Cesium Ion. Handles token refresh, asset endpoint resolution, and attribution collection. Automatically registers a GoogleCloudAuthPlugin when the resolved asset is an external Google photorealistic tileset.
On this page
Properties
assetId: number | null
The Cesium Ion asset ID to load, or null if using an explicit root URL.
autoRefreshToken: boolean
Whether to automatically refresh the token on 4xx errors.
useRecommendedSettings: boolean
Whether to apply recommended renderer settings for Cesium Ion assets.
assetTypeHandler: ( type: string, tiles: TilesRendererBase, asset: Object ) => void
Callback invoked when the resolved Cesium Ion asset type is not 3DTILES.
tiles: Object | null
The TilesRenderer instance this plugin is registered with.
Methods
new CesiumIonAuthPlugin(
options: {
apiToken: string,
assetId: number | null = null,
autoRefreshToken: boolean = false,
useRecommendedSettings: boolean = true,
assetTypeHandler?: ( type: string, tiles: TilesRendererBase, asset: Object ) => void
}
)