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
textCanvasFactory: TextCanvasFactoryOptional A TextCanvasFactory to override the default.
Optional
poiRenderer: PoiRendererOptional A PoiRenderer to override the default.
Optional
screenCollisions: ScreenCollisionsOptional ScreenCollisions to override the default. [[TextElementsRendererOptions]].
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.
Reset the current text render states of all visible tiles.
All TextElements will fade in after that as if they have just been added.
Return memory used by all objects managed by TextElementsRenderer
.
MemoryUsage
Heap and GPU memory used by this TextElementsRenderer
.
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.
Updates the FontCatalogs used by this TextElementsRenderer.
Optional
fontCatalogs: FontCatalogConfig[]The new list of FontCatalogConfigs
Generated using TypeDoc
Internal class to manage all text rendering.