flywave-mapview.datasource.shouldrendertext
Home > @flywave/flywave-mapview > DataSource > shouldRenderText
DataSource.shouldRenderText() method
Returns true if MapView should render the text elements with the given and zoom level.
Signature:
shouldRenderText(zoomLevel: number, tileKey: TileKey): boolean;
Parameters
Parameter | Type | Description |
|---|---|---|
zoomLevel | number | The zoom level. |
tileKey | TileKey | The unique identifier for a map tile. |
Returns:
boolean
`true` if the text elements created for the given should be rendered.
## Remarks
This is an additional check for the tiles that are already selected for rendering so the default implementation returns `true`<!-- -->.