Struct DrawableCacheKey
Composite key for caching drawables, combining feature and style generation IDs. When either the feature or style is modified (calling Modified()), the GenerationId changes, causing the old cache entry to become stale and a new drawable to be created.
Implements
Inherited Members
Namespace: Mapsui.Rendering
Assembly: Mapsui.dll
Syntax
public readonly record struct DrawableCacheKey : IEquatable<DrawableCacheKey>
Constructors
| Edit this page View SourceDrawableCacheKey(long, long)
Composite key for caching drawables, combining feature and style generation IDs. When either the feature or style is modified (calling Modified()), the GenerationId changes, causing the old cache entry to become stale and a new drawable to be created.
Declaration
public DrawableCacheKey(long FeatureGenerationId, long StyleGenerationId)
Parameters
| Type | Name | Description |
|---|---|---|
| long | FeatureGenerationId | The feature's GenerationId at the time the drawable was created. |
| long | StyleGenerationId | The style's GenerationId at the time the drawable was created. |
Properties
| Edit this page View SourceFeatureGenerationId
The feature's GenerationId at the time the drawable was created.
Declaration
public long FeatureGenerationId { get; init; }
Property Value
| Type | Description |
|---|---|
| long |
StyleGenerationId
The style's GenerationId at the time the drawable was created.
Declaration
public long StyleGenerationId { get; init; }
Property Value
| Type | Description |
|---|---|
| long |