Icons
Geocode
LBS
Search
Route
Points
Miscellaneous
Index

Circle

Inheritance: Shape > Circle

The Circle class is used to draw a circle on the map.
The Circle class is based on the Shape class, and in order to add a circle on the map you should add the circle object to the map’s LayersManager object.

See on the examples page Use shapes -> Add circle to map


Summary
Inheritance: Shape > Circle
The Circle constructor.
Returns the bounding box (Top Left, Bottom Right) position of the circle.
Returns the brush style of the circle.
Returns the center coordinate of the circle.
Returns the line style of the circle.
Returns the radius of the circle.
Return true if the point is in the circle, otherwise returns false.
Sets a new brush style to the circle.
Sets the center coordinate of the circle.
Sets a new line style to the circle.
Sets a new radius to the circle.

Constructors

Circle

Circle(string id
Coordinate coordinate
int radius
LineStyle lineStyle
BrushStyle brushStyle
string label
string hint
boolean isVisible
boolean isLabelVisible)

The Circle constructor.

Parameters

idThe id of the circle.
coordinateThe center coordinate of the circle.
radiusThe radius of the circle.
lineStyleThe line style of the circle.
brushStyleThe brush style of the circle.
labelThe label of the circle.
hintThe hint of the circle.
isVisibleDetermine if the circle is visible.
isLabelVisibleDetermine if the label of the circle is visible.

Methods

getBounds

Bounds getBounds()

Returns the bounding box (Top Left, Bottom Right) position of the circle.

Returns

The bounding box position of the circle.

getBrushStyle

BrushStyle getBrushStyle()

Returns the brush style of the circle.

Returns

The brush style of the circle.

See Also

setBrushStyle

getCoordinate

Coordinate getCoordinate()

Returns the center coordinate of the circle.

Returns

The center coordinate of the circle.

See Also

setCoordinate

getLineStyle

LineStyle getLineStyle()

Returns the line style of the circle.

Returns

The line style of the circle.

See Also

setLineStyle

getRadius

int getRadius()

Returns the radius of the circle.

Returns

The radius of the circle.

See Also

setRadius

isPointInside

boolean isPointInside(LatLong latLong)

Return true if the point is in the circle, otherwise returns false.

Returns

True if the point is in the circle, otherwise returns false.

Parameters

latLongThe coordinate of the point.

setBrushStyle

setBrushStyle(BrushStyle brushStyle)

Sets a new brush style to the circle.

Parameters

brushStyleA new brush style.

See Also

getBrushStyle

setCoordinate

setCoordinate(Coordinate coordinate)

Sets the center coordinate of the circle.

Returns

coordinateThe center coordinate of the circle.

See Also

getCoordinate

setLineStyle

setLineStyle(LineStyle lineStyle)

Sets a new line style to the circle.

Parameters

lineStyleA new line style.

See Also

getLineStyle

setRadius

setRadius(int radius)

Sets a new radius to the circle.

Parameters

radiusThe radius of the circle.

See Also

getRadius

The Shape class is used to define a shape (Marker, Polygon, Polyline, Circle) to be drawn on the map.
In order to add any shape on the map you should add the shape object to the map’s LayersManager object.

Circle(string id
Coordinate coordinate
int radius
LineStyle lineStyle
BrushStyle brushStyle
string label
string hint
boolean isVisible
boolean isLabelVisible)
The Circle constructor.
setRadius(int radius)
Sets a new radius to the circle.
int getRadius()
Returns the radius of the circle.
boolean isPointInside(LatLong latLong)
Return true if the point is in the circle, otherwise returns false.
setCoordinate(Coordinate coordinate)
Sets the center coordinate of the circle.
Coordinate getCoordinate()
Returns the center coordinate of the circle.
Bounds getBounds()
Returns the bounding box (Top Left, Bottom Right) position of the circle.
setLineStyle(LineStyle lineStyle)
Sets a new line style to the circle.
LineStyle getLineStyle()
Returns the line style of the circle.
setBrushStyle(BrushStyle brushStyle)
Sets a new brush style to the circle.
BrushStyle getBrushStyle()
Returns the brush style of the circle.
Inheritance: Layer > LayersCollection > LayersManager
This is the base class of the provided coordinates classes.
This class defines a line style.
This class defines a brush style.
The Bounds class represent a rectangular area of the map in geographical coordinates.