Circle
Last Updated On 2021-07-16
Version 2MinSDK 7Tutorial Video
Circle
Properties
You can set the below properties in the UI part of the builder.
- Description - it's a text value which is set to blank by default.
- Draggable - it's a boolean value which is set to false by default.
- EnableInfobox - it's a boolean value which is set to false by default.
- FillColor - it's a color value which is set to &hffff0000 by default.
- FillOpacity - it's a float value which is set to 1.0 by default.
- Latitude - it's a latitude value which is set to 0 by default.
- Longitude - it's a longitude value which is set to 0 by default.
- Radius - it's a non negative float value which is set to 0 by default.
- StrokeColor - it's a color value which is set to &hff000000 by default.
- StrokeOpacity - it's a float value which is set to 1.0 by default.
- StrokeWidth - it's a integer value which is set to 1 by default.
- Title - it's a text value which is set to blank by default.
- Visible - it's a visibility value which is set to true by default.
Block Properties
You can set the below blocks properties in the blocks section of the builder.
Description
The description displayed in the info window that appears when the user clicks on the Circle.
Draggable
The Draggable property is used to set whether or not the user can drag the Circle by long-pressing and then dragging the Circle to a new location.
EnableInfobox
Enable or disable the infobox window display when the user taps the Circle.
FillColor
The paint color used to fill in the Circle.
FillOpacity
The opacity of the interior of the map feature.
Latitude
The latitude of the center of the circle.
Longitude
The longitude of the center of the circle.
Radius
The radius of the circle in meters.
StrokeColor
The paint color used to outline the Circle.
StrokeOpacity
The opacity of the stroke used to outline the map feature.
StrokeWidth
The width of the stroke used to outline the Circle.
Title
The title displayed in the info window that appears when the user clicks on the Circle.
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 is true if the component is showing and false if hidden.
Methods
You can set the below method blocks in the blocks section of the builder.
DistanceToFeature
Compute the distance, in meters, between two map features.
DistanceToPoint
Compute the distance, in meters, between a Circle and a latitude, longitude point.
HideInfobox
Hide the infobox if it is shown. If the infobox is not visible this function has no effect.
SetLocation
Set the center of the Circle.
ShowInfobox
Show the infobox for the Circle. This will show the infobox even if EnableInfobox is set to false.
Events
You can set the below event blocks in the blocks section of the builder.
Click
The user clicked on the Circle.
Drag
The user dragged the Circle.
LongClick
The user long-pressed on the Circle. This event will only trigger if Draggable is false.
StartDrag
The user started a drag operation.
StopDrag
The user stopped a drag operation.