Create the TextElementsRenderer
which selects which labels should be placed on screen as
a preprocessing step, which is not done every frame, and also renders the placed
TextElements every frame.
State of the view for which this renderer will draw text.
Projects 3D coordinates into screen space.
To prepare pois for rendering.
The renderer to be used.
The Image Caches to look for Icons.
Configuration options for the text renderer. See
Optional A TextCanvasFactory to override the default.
Optional A PoiRenderer to override the default.
Optional ScreenCollisions to override the default. TextElementsRendererOptions.
Disable all fading animations (for debugging and performance measurement). Defaults to
false
.
Disable all fading animations (for debugging and performance measurement). Defaults to
false
.
true
if TextElements are not placed finally but are still updating, including fading or
waiting for elevation.
true
if any resource used by any FontCatalog
is still loading.
Is true
if number of TextElements in visible tiles is larger than the recommended
number OVERLOAD_LABEL_LIMIT
.
If true
, a replacement glyph ("?") is rendered for every missing glyph.
If true
, a replacement glyph ("?") is rendered for every missing glyph.
Adds new overlay text elements to this MapView
.
Array of TextElement to be added.
Adds new overlay text elements to this MapView
.
Reset the current text render states of all visible tiles.
Return memory used by all objects managed by TextElementsRenderer
.
MemoryUsage
Heap and GPU memory used by this TextElementsRenderer
.
Whether there's overlay text to be rendered.
Forces update of text elements in the next call to placeText.
Notify TextElementsRenderer
that the camera has finished its movement.
Notify TextElementsRenderer
that the camera has started a movement.
Fill the picking results for the pixel with the given screen coordinate. If multiple TextElements are found, the order of the results is unspecified.
Note: TextElements with identical featureId
or
identical userData
will only appear
once in the list pickResults
.
Screen coordinate of picking position.
Places text elements for the current frame.
List of tiles to be rendered for each data source.
Current frame time.
Render the text using the specified camera into the current canvas.
Updates the FontCatalogs used by this TextElementsRenderer.
The new list of FontCatalogConfigs
Waits till all pending resources from any FontCatalog
are loaded.
Generated using TypeDoc
Internal class to manage all text rendering.