DatastoreRenderer class
High-performance tile renderer for datastore-based map data.
This renderer converts map data from datastores into visual tile representations by applying rendering themes and generating bitmap images. It supports both static rendering (with labels) and dynamic rendering (without labels for rotation).
Key features:
- Efficient tile-based rendering with object pooling
- Theme-based styling with zoom level support
- Optional label rendering for rotation compatibility
- Spatial indexing for collision detection
- Performance optimizations with caching
Constructors
- DatastoreRenderer(Datastore datastore, Rendertheme rendertheme, {bool useSeparateLabelLayer = true, bool useIsolateReader = false})
- Creates a new datastore renderer with the specified configuration.
Properties
- datastore → Datastore
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- rendertheme → Rendertheme
-
Rendering theme defining visual styling rules.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tileDependencies ↔ TileDependencies?
-
Manages dependencies between tiles for label rendering.
getter/setter pair
- useSeparateLabelLayer → bool
-
Whether to render labels directly onto tile images.
final
Methods
-
dispose(
) → void -
Disposes of renderer resources and cleans up.
override
-
executeJob(
JobRequest job) → Future< JobResult> -
Executes a given job and returns a future with the bitmap of this job.
@returns null if the datastore does not support the requested tile
@returns the Bitmap for the requested tile
override
-
getRenderKey(
) → String -
Returns a unique cache key for this renderer configuration.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
retrieveLabels(
JobRequest job) → Future< JobResult> -
Retrieves labels for separate rendering to support map rotation.
override
-
supportLabels(
) → bool -
Returns whether this renderer supports separate label rendering.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- TAG_NATURAL_WATER → Tag
-
Tag identifier for natural water features used in rendering optimization.
final