Class StyleTransitionOptions
The style's global transition options.
public sealed record StyleTransitionOptions : IEquatable<StyleTransitionOptions>
- Inheritance
-
StyleTransitionOptions
- Implements
- Inherited Members
Remarks
These control how the style animates paint property changes and whether symbol placement changes cross-fade; they are distinct from camera animation options and from the per-property transitions a style declares. Compares and hashes by property value; keep an instance unmodified while it is a key in a hash-based collection.
Properties
Delay
Transition delay in milliseconds. Null falls back to the delay the style declares for each transitioning property.
public double? Delay { get; set; }
Property Value
Duration
Transition duration in milliseconds. Null falls back to the duration the style declares for each transitioning property.
public double? Duration { get; set; }
Property Value
EnablePlacementTransitions
Whether symbol placement changes cross-fade. Null leaves the cross-fade on, which is MapLibre Native's own default.
public bool? EnablePlacementTransitions { get; set; }
Property Value
- bool?
Remarks
Clearing it makes symbol placement changes apply to the next rendered frame. Reading the options always reports a value here.