Added Circles and Polygons to Maps #1647
Closed
edburley
started this conversation in
New Feature Discussions
Replies: 1 comment
-
Closing as this is now implemented you can read the docs here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Circle and Polygon drawing was missing from CommunityToolkit.Maui.Maps/Handler/Map/MapHandler.Windows.cs.
This patch adds both Circles and Polygons.
The erase method for pins had to be modified to not clear things that aren't pins.
Usage:
MyMap.MapElements.Clear();
Circle circle = new Circle
{
Center = center,
Radius = Distance.FromMiles(circleRadius),
StrokeColor = Color.FromArgb("#88FF0000"),
StrokeWidth = 3,
FillColor = Color.FromArgb("#88FFC0CB")
};
MyMap.MapElements.Add(circle);
0001-MapHandler-Windows-cs.patch
Beta Was this translation helpful? Give feedback.
All reactions