flywave-mapview.datasource.shouldsubdivide
Home > @flywave/flywave-mapview > DataSource > shouldSubdivide
DataSource.shouldSubdivide() method
Returns true if MapView should traverse tiles further with given and zoom level.
Signature:
shouldSubdivide(zoomLevel: number, tileKey: TileKey): boolean;
Parameters
Parameter | Type | Description |
|---|---|---|
zoomLevel | number | The zoom level of the MapView. |
tileKey | TileKey | The unique identifier for a map tile. |
Returns:
boolean
`true` if the subtiles of the given should be checked for collisions.