Skip to main content

flywave-3dtile-datasource.tilerenderdatasource

Home > @flywave/flywave-3dtile-datasource > TileRenderDataSource

TileRenderDataSource class

A DataSource implementation for rendering 3D Tiles datasets in flywave.gl

This class integrates the 3D Tiles renderer with flywave.gl's MapView system, providing seamless loading and rendering of 3D Tiles content with support for styling, animation, and interaction.

The data source handles: - Loading and parsing of 3D Tiles tilesets - Integration with flywave.gl's theme system for styling - Batch rendering for efficient visualization of large datasets - Raycasting and picking for user interaction - Animation effects for batched features

Signature:

export declare class TileRenderDataSource extends DataSource 

Extends: DataSource

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Creates a new TileRenderDataSource instance

Properties

Property

Modifiers

Type

Description

animation

readonly

BatchAnimation

Gets the batch animation configuration

tilesRenderer

readonly

TilesRenderer

Gets the 3D Tiles renderer instance

Methods

Method

Modifiers

Description

addStyle(style)

Add a new style to the style set.

attach(mapView)

Called when the data source is attached to a MapView

connect()

Called when the data source is attached to a MapView

detach(mapView)

Called when the data source is detached from a MapView

dispose()

Disposes of the data source and cleans up resources

getGeoExtent()

Gets the geographic extent of the tileset

getRootTile()

Get the root tile of the tileset

getTile(tileKey, delayLoad)

Gets a tile for the given tile key

Note: 3D Tiles uses its own tile management system, so this method returns undefined as tiles are managed internally by the TilesRenderer.

getTilingScheme()

Returns the tiling scheme used by this data source

intersectMapObjects(x, y, parameters)

Intersects map objects at the given screen coordinates

raycast(raycaster, intersections)

Performs raycasting for picking operations

ready()

Returns whether the data source is ready to provide tiles

removeStyleById(id)

Remove style by its identifier.

requestUpdate()

Requests an update of the MapView

setTheme(theme, languages)

Apply the theme to this data source.

This method integrates with flywave.gl's theme system to support declarative styling of 3D Tiles content.

setThemeFromBase(theme, languages)

Sets the theme from the base theme.

This method is used to set the theme from the base theme.

setVisible(visible)

Sets the visibility of the 3D Tiles content

updateStyleById(id, updates)

Update style properties by its identifier.