DJI Mobile SDK Documentation

class DJICircle

interface DJICircle
Package:com.dji.mapkit.core.models.annotations
Description:

A circle that exists on a map object. To add a new circle to a map, see DJICircleOptions.

Class Members:
method
method remove
void remove()
Package:com.dji.mapkit.core.models.annotations
Description:

Removes the circle from the map it is on.

method setVisible
void setVisible(boolean visible)
Package:com.dji.mapkit.core.models.annotations
Description:

Changes the visibility of the circle.

Input Parameters:
boolean visibletrue if the circle is visible, false if it is hidden.
method
method isVisible
boolean isVisible()
Package:com.dji.mapkit.core.models.annotations
Description:

Gets the visibility of the circle.

Return:
booleantrue if the circle is visible, false if it is hidden.
method
method setCenter
void setCenter(DJILatLng center)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the center of the circle.

Input Parameters:
DJILatLng centerThe coordinates of the center of the circle.
method
method getCenter
DJILatLng getCenter()
Package:com.dji.mapkit.core.models.annotations
Description:

Gets the center of the circle.

Return:
DJILatLngThe coordinates of the center of the circle.
method
method setRadius
void setRadius(double radius)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the radius of the circle.

Input Parameters:
double radiusThe radius of the circle.
method
method getRadius
double getRadius()
Package:com.dji.mapkit.core.models.annotations
Description:

Gets the radius of the circle.

Return:
doubleThe radius of the circle.
method setFillColor
void setFillColor(@ColorInt int color)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the fill color of the circle.

Input Parameters:
@ColorInt int colorThe fill color of the circle.
method getFillColor
@ColorInt
int getFillColor()
Package:com.dji.mapkit.core.models.annotations
Description:

The fill color of the circle.

Return:
intThe fill color of the circle.
method setStrokeColor
void setStrokeColor(@ColorInt int color)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the stroke color of the circle.

Input Parameters:
@ColorInt int colorThe stroke color of the circle.
method getStrokeColor
@ColorInt
int getStrokeColor()
Package:com.dji.mapkit.core.models.annotations
Description:

Gets the stroke color of the circle.

Return:
intThe stroke color of the circle.
method setStrokeWidth
void setStrokeWidth(float strokeWidth)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the stroke width of the circle.

Input Parameters:
float strokeWidthThe stroke width of the circle.
method getStrokeWidth
float getStrokeWidth()
Package:com.dji.mapkit.core.models.annotations
Description:

Gets the stroke width of the circle.

Return:
floatThe stroke width of the circle.
method
method setZIndex
void setZIndex(float zIndex)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the zIndex of the circle.

Input Parameters:
float zIndexThe zIndex of the circle.
method
method getZIndex
float getZIndex()
Package:com.dji.mapkit.core.models.annotations
Description:

Gets the zIndex of the circle.

Return:
floatThe zIndex of the circle.