Class Circle
- Namespace
- MapLibreNative.Maui.Handlers.Overlays
A circle of a given geographic Radius drawn on the map, mirroring
Microsoft.Maui.Controls.Maps.Circle. Rendered as a filled polygon (approximated via
ToCircumferencePositions(MapCoordinate, Distance, int)) with an optional stroke.
public class Circle : MapOverlayElement
- Inheritance
-
Circle
- Inherited Members
Fields
CenterProperty
public static readonly BindableProperty CenterProperty
Field Value
- BindableProperty
FillColorProperty
public static readonly BindableProperty FillColorProperty
Field Value
- BindableProperty
RadiusProperty
public static readonly BindableProperty RadiusProperty
Field Value
- BindableProperty
Properties
Center
The centre of the circle.
public Location Center { get; set; }
Property Value
- Location
FillColor
The fill colour of the circle.
public Color? FillColor { get; set; }
Property Value
- Color?
Radius
The radius of the circle.
public Distance Radius { get; set; }
Property Value
Methods
BuildOverlay(MapLibreMap)
Adds this element's source and layer(s) to map.
protected override void BuildOverlay(MapLibreMap map)
Parameters
mapMapLibreMap
BuildSourceFeatures()
Builds the circle polygon as a GeoJSON feature collection (used for both build and in-place update).
protected override GeoJSON.Text.Feature.FeatureCollection? BuildSourceFeatures()
Returns
- GeoJSON.Text.Feature.FeatureCollection?
RemoveOverlay(MapLibreMap)
Removes this element's layer(s) and source from map.
protected override void RemoveOverlay(MapLibreMap map)
Parameters
mapMapLibreMap