Circle
Definition
The Circle
component visualizes a circle of a given Radius
, in meters, centered at a Latitude
and Longitude
. The Circle
’s appearance cnn be customized using properties such as FillColor
, StrokeColor
, and StrokeWidth
.
The Circle
component can also be used to implement features such as geofencing, a mechanism where the user’s presence within an area is used to trigger other behaviors. Using the DistanceToPoint
method combined with the LocationSensor
, you can determine whether a user’s location is inside or outside of the Circle
. You can use this feature to trigger additional actions.
Properties
- Description
- Sets or gets the description displayed in the info window. The info window appears when the user taps on the
Circle
. - Draggable
- Sets or gets whether or not the user can drag a map feature. This feature is accessed by long-pressing and then dragging the
Circle
to a new location. - EnableInfobox
- Enables or disables the infobox window display when the user taps the
Circle
. - FillColor
- Sets or gets the color used to fill in the
Circle
. - FillOpacity
- Sets or gets the opacity of the color used to fill the
Circle
. A value of 0.0 will be completely invisible and a value of 1.0 will be completely opaque. - Latitude
- Sets or gets the latitude of the center of the circle, in degrees. Positive values represent north of the equator and negative values represent south of the equator. To update the latitude and longitude simultaneously, use the
SetLocation
method. - Longitude
- Sets or gets the longitude of the center of the circle, in degrees. Positive values represent east of the prime meridian and negative values represent west of the prime meridian. To update the latitude and longitude simultaneously, use the
SetLocation
method. - Radius
- Sets or gets the radius of the circle, in meters.
- StrokeColor
- Sets or gets the color used to outline the
Circle
. - StrokeOpacity
- Sets or gets the opacity of the outline of the
Circle
. A value of 0.0 will be invisible and a value of 1.0 will be opaque. - StrokeWidth
- Sets or gets the width of the stroke used to outline the
Circle
. - Title
- Sets or gets the title displayed in the info window that appears when the user clicks on the map feature.
- Type
- Returns the type of the feature. For Circles, this returns MapFeature.Circle (“Circle”).
- Visible
- Specifies whether the
Circle
should be visible on the screen. Value istrue
if theCircle
is showing andfalse
if hidden.