Interface IDynamicFeatureRenderer
- Namespace
- EncDotNet.S100.Renderers.Mapsui.DynamicSources
- Assembly
- EncDotNet.S100.Renderers.Mapsui.dll
Renders a DynamicFeature as zero or more Mapsui Mapsui.IFeature instances ready to drop into a Mapsui.Layers.MemoryLayer.
public interface IDynamicFeatureRenderer
Remarks
Renderers are pure functions of a feature snapshot — they
must not subscribe to sources, must not retain mutable state
between calls, and may be invoked on any thread. The viewer-side
overlay host serialises calls onto the UI thread when mutating
the backing MemoryLayer.
Coordinates from Coordinates arrive in WGS-84 lat/lon (latitude first, per the static vector pipeline convention). Renderers project to SphericalMercator (EPSG:3857) themselves; the overlay host does not project.
Methods
CanRender(DynamicFeature)
Returns true if this renderer is willing to
produce output for feature. Used by
CompositeDynamicFeatureRenderer for ordered
fallthrough.
bool CanRender(DynamicFeature feature)
Parameters
featureDynamicFeature
Returns
Render(DynamicFeature)
Produces zero or more Mapsui features for
feature. May return an empty sequence
when the feature is unsupported or degenerate.
IEnumerable<IFeature> Render(DynamicFeature feature)
Parameters
featureDynamicFeature
Returns
- IEnumerable<IFeature>