2using Mapsui.Extensions;
6using Mapsui.Rendering.Skia;
8using Mapsui.Rendering.Skia.SkiaStyles;
19 public class DataUriStyleRenderer : ISkiaStyleRenderer
38 IRenderCache RenderCache,
41 if (Style is not DataUriStyle CustomStyle)
47 bool GotPoint =
false;
49 Feature.CoordinateVisitor((X, Y, Setter) =>
59 MPoint WorldPoint =
new MPoint(WorldX, WorldY);
60 MPoint Screen = Viewport.WorldToScreen(WorldPoint);
62 string DataUri = Feature[
"DataUri"]?.ToString() ??
string.Empty;
65 using SKPaint Paint =
new SKPaint
67 Color = SKColors.Blue.WithAlpha((
byte)(255 * CustomStyle.Opacity)),
70 Canvas.DrawCircle((
float)Screen.X, (
float)Screen.Y, 12, Paint);
81 public bool Draw() =>
false;
Stub renderer compiled when MAPSUI_SKIA is not defined; avoids build break.