flywave-mapview.tile
Home > @flywave/flywave-mapview > Tile
Tile class
The class that holds the tiled data for a DataSource.
Signature:
export declare class Tile implements CachedResource
Implements: CachedResource
Constructors
Constructor | Modifiers | Description |
|---|---|---|
(constructor)(dataSource, tileKey, offset, localTangentSpace) | Creates a new Tile. |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| boolean |
| |
| PathBlockingElement[] | Get the current blocking elements. | |
| OrientedBox3 | Gets the tile's bounding box. | |
| THREE.Vector3 | The center of this | |
CopyrightInfo[] | (Optional) Copyright information of this | ||
| |||
DecodedTile | undefined | Gets the decoded tile; it is removed after geometry handling. | ||
boolean | If the tile should not yet be rendered, this is used typically when the tile in question does not fit into the gpu upload limit of the current frame. Setting this value directly affects the [[willRender]] method, unless overriden by deriving classes. | ||
| TileKey[] | The optional list of HERE TileKeys of tiles with geometries that cross the boundaries of this | |
| boolean | Returns | |
number | Keeping some stats for the individual Tiles to analyze caching behavior. The frame the Tile was last requested. This is required to know when the given Tile can be removed from the cache. | ||
number | The last frame this | ||
number | The frame the | ||
| GeoBox | The bounding box of this | |
| boolean | MapView checks if this By default, MapView checks if the [[objects]] list is not empty. However, you can override this check by manually setting this property. | |
boolean | The visibility status of the Tile. It is actually visible or planned to become visible. | ||
number | Used to tell if the Tile is used temporarily as a fallback tile. levelOffset is in in the range [-quadTreeSearchDistanceUp, quadTreeSearchDistanceDown], where these values come from the VisibleTileSetOptions | ||
| boolean | Whether the data of this tile is in local tangent space or not. | |
| TileGeometryLoader | (Optional) | |
| The MapView this | ||
| number | ||
number | After removing from cache, this is the number of frames the | ||
| A list of the THREE.js objects stored in this | ||
number | The optional offset, this is an integer which represents what multiple of 360 degrees to shift, only useful for flat projections, hence optional. | ||
| TextPathGeometry[] | undefined | Prepared text geometries optimized for display. | |
| Projection | The currently used by the MapView. | |
boolean | If the tile should not be rendered, this is used typically when the tile in question is completely covered by another tile and therefore can be skipped without any visual impact. Setting this value directly affects the [[willRender]] method, unless overriden by deriving classes. | ||
boolean | Gets the current modification state for the list of s in the | ||
| TileTextStyleCache | Text style cache for this tile. | |
| TileGeometryLoader | undefined | ||
| TileKey | ||
ITileLoader | undefined | Gets the ITileLoader that manages this tile. | ||
| number | Gets the key to uniquely represent this tile (based on the and ). | |
number | Version stamp of the visibility set in the [[TileManager]]. If the counter is different, the visibility of the Tile's objects has to be calculated. Optimization to reduce overhead of computing visibility. | ||
number | Estimated visible area of tile used for sorting the priorities during loading. |
Methods
Method | Modifiers | Description |
|---|---|---|
Adds a | ||
Add ownership of a texture to this tile. | ||
Adds a to this | ||
Adds a developer-defined to this | ||
Frees the rendering resources allocated by this | ||
Removes all from the tile. | ||
Computes the offset in the x world coordinates corresponding to this tile, based on its . | ||
Called after MapView has rendered this | ||
Disposes this | ||
Overrides the default value for [[hasGeometry]] if value is not | ||
Compute TileResourceInfo of this | ||
Returns true if the | ||
Force invalidation of the cached TileResourceInfo. | ||
Loads this | ||
| Called when is finished. | |
Performs raycasting on the tile's objects. | ||
Removes a from this | ||
Removes a developer-defined from this | ||
Reset the visibility counter. This will force the visibility check to be rerun on all objects in this | ||
Called when the default implementation of | ||
Called when the default implementation of | ||
Called when the default implementation of | ||
| Updates the tile's world bounding box. | |
Called before MapView starts rendering this |