Class RenderController
Inheritance
RenderController
Assembly: Mapsui.UI.Android.dll
Syntax
public sealed class RenderController : IDisposable
Constructors
|
Edit this page
View Source
RenderController(Func<Map?>, Action)
Declaration
public RenderController(Func<Map?> getMap, Action InvalidateCanvas)
Parameters
Methods
|
Edit this page
View Source
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
|
Edit this page
View Source
GetMapInfo(ScreenPosition, Viewport, IEnumerable<ILayer>, RenderService, int)
Declaration
public MapInfo GetMapInfo(ScreenPosition screenPosition, Viewport viewport, IEnumerable<ILayer> layers, RenderService renderService, int margin = 0)
Parameters
Returns
|
Edit this page
View Source
RefreshGraphics()
Signals that the entire viewport needs to be redrawn on the next render cycle.
Declaration
public void RefreshGraphics()
|
Edit this page
View Source
RefreshGraphics(RefreshRequest?)
Signals that only the given region needs to be redrawn.
Multiple calls before the next render are accumulated.
If a full refresh is already pending, the incoming request is ignored.
Declaration
public void RefreshGraphics(RefreshRequest? request)
Parameters
| Type |
Name |
Description |
| RefreshRequest |
request |
The refresh request, or null to force a full refresh.
|
|
Edit this page
View Source
Render(object)
Renders the map to the given canvas without applying any pixel density scaling.
Use this overload from platforms that apply DPI scaling before providing the canvas
(e.g. Avalonia), or from callers that have already scaled the canvas.
Declaration
public void Render(object canvas)
Parameters
| Type |
Name |
Description |
| object |
canvas |
|
|
Edit this page
View Source
Render(object, float?)
Renders the map to the given canvas, applying the supplied pixel density scaling first.
If pixelDensity is null the view is not yet laid out;
the render is skipped but the invalidation loop is still unblocked so it can retry later.
Declaration
public void Render(object canvas, float? pixelDensity)
Parameters
| Type |
Name |
Description |
| object |
canvas |
|
| float? |
pixelDensity |
|
|
Edit this page
View Source
Declaration
public MemoryStream RenderToBitmapStream(Viewport viewport, IEnumerable<ILayer> layers, RenderService renderService, Color? background = null, float pixelDensity = 1, IEnumerable<IWidget>? widgets = null, RenderFormat renderFormat = RenderFormat.Png, int quality = 100)
Parameters
Returns
|
Edit this page
View Source
SetMapRenderer(IMapRenderer)
Declaration
public void SetMapRenderer(IMapRenderer mapRenderer)
Parameters
|
Edit this page
View Source
SetupDrawableFactory(RenderService)
Declaration
public void SetupDrawableFactory(RenderService renderService)
Parameters
| Type |
Name |
Description |
| RenderService |
renderService |
The render service to configure.
|
|
Edit this page
View Source
UpdateDrawables(Viewport, ILayer, RenderService)
Delegates to the map renderer's UpdateDrawables to create pre-rendered objects.
Called when layer data changes.
Declaration
public void UpdateDrawables(Viewport viewport, ILayer layer, RenderService renderService)
Parameters
Implements
Extension Methods