Creates a new Tile.
The DataSource that created this Tile.
The unique identifier for this Tile. Currently only up to level 24 is supported, because of the use of the upper bits for the offset.
The optional offset, this is an integer which represents what multiple of 360 degrees to shift, only useful for flat projections, hence optional.
Whether the tile geometry is in local tangent space or not.
Copyright information of this Tile
's data.
The DataSource that created this Tile.
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.
The optional list of HERE TileKeys of tiles with geometries that cross the boundaries of this
Tile
.
The last frame this Tile
has been rendered (or was in the visible set). Used to determine
visibility of Tile
at the end of a frame, if the number is the current frame number, it is
visible.
The frame the Tile
was first visible.
The bounding box of this Tile
in geocoordinates.
After removing from cache, this is the number of frames the Tile
was visible.
A list of the THREE.js objects stored in this Tile
.
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.
The unique identifier for this Tile. Currently only up to level 24 is supported, because of the use of the upper bits for the offset.
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.
True
if all geometry of the Tile
has been loaded.
Get the current blocking elements.
Gets the tile's bounding box.
The center of this Tile
in world coordinates.
Gets the decoded tile; it is removed after geometry handling.
Applies the decoded tile to the tile.
The decoded tile to set.
Returns true
if this Tile
has been disposed.
The elevation range.
MapView checks if this Tile
is ready to be rendered while culling.
By default, MapView checks if the objects list is not empty. However, you can override this check by manually setting this property.
The visibility status of the Tile. It is actually visible or planned to become visible.
Sets the tile visibility status.
True
to mark the tile as visible, False
otherwise.
Gets a set of the GeometryKinds that were loaded (if any).
Whether the data of this tile is in local tangent space or not.
The optional offset, this is an integer which represents what multiple of 360 degrees to shift, only useful for flat projections, hence optional.
The optional offset, this is an integer which represents what multiple of 360 degrees to shift, only useful for flat projections, hence optional.
Which multiple of 360 degrees to apply to the Tile.
The {@link @here/harp-geoutils#Projection} currently used by the MapView.
Gets the current modification state for the list
of TextElements in the Tile
.
Gets the current modification state for the list
of TextElements in the Tile
.
Gets the ITileLoader that manages this tile.
Sets the ITileLoader to manage this tile.
A ITileLoader instance to manage the loading process for this tile.
Estimated visible area of tile used for sorting the priorities during loading.
Estimated visible area of tile used for sorting the priorities during loading.
Adds a PathBlockingElement
to this Tile
.
Element which should block all other labels.
Adds a callback that will be called whenever the tile is disposed.
The callback to be called when the tile is disposed.
Add ownership of a texture to this tile.
Texture to be owned by the Tile
Adds a TextElement to this Tile
, which is added to the visible set of
TextElements based on the capacity and visibility.
The TextElement to add.
Adds a developer-defined TextElement to this Tile
.
The Text element to add.
Frees the rendering resources allocated by this Tile
.
Removes all TextElement from the tile.
Computes the offset in the x world coordinates corresponding to this tile, based on its offset.
The x offset.
Called after MapView has rendered this Tile
.
Disposes this Tile
, freeing all geometries and materials for the reachable objects.
Overrides the default value for hasGeometry if value is not undefined
.
A new value for the hasGeometry flag.
Compute TileResourceInfo of this Tile
.
TileResourceInfo
for this Tile
.
Returns true if the Tile
has any text elements to render.
Force invalidation of the cached TileResourceInfo.
Loads this Tile
geometry.
Promise which can be used to wait for the loading to be finished.
Called when TileGeometryLoader is finished.
Removes a TextElement from this Tile
.
The TextElement to remove.
true
if the TextElement has been removed successfully; false
otherwise.
Removes a developer-defined TextElement from this Tile
.
A developer-defined TextElement to remove.
true
if the element has been removed successfully; false
otherwise.
Reset the visibility counter. This will force the visibility check to be rerun on all objects
in this Tile
.
Called when the default implementation of dispose()
needs
to free the geometry of a Tile
object.
The object that references the geometry.
true
if the geometry can be disposed.
Called when the default implementation of dispose()
needs
to free a Tile
object's material.
The object referencing the geometry.
true
if the material can be disposed.
Called when the default implementation of dispose()
needs
to free a Texture that is part of a Tile
object's material.
The texture about to be disposed.
true
if the texture can be disposed.
Update tile for current map view zoom level
Zoom level of the map view
Start with or continue with loading geometry for tiles requiring this step. Called repeatedly until loading is finished.
Priority assigned to asynchronous tasks doing the geometry update.
GeometryKinds that will be created.
GeometryKinds that will not be created.
true
if tile uses a geometry loader, false
otherwise.
Called before MapView starts rendering this Tile
.
Returns true
if this Tile
should be rendered. Influenced directly by the
skipRendering
property unless specifically overriden in deriving classes.
Generated using TypeDoc
The class that holds the tiled data for a DataSource.