DJI Mobile SDK Documentation

class DJICircleOptions

class DJICircleOptions
Package:com.dji.mapkit.core.models.annotations
Description:

Represents a set of instructions for creating a new DJICircle. This object can be passed to DJICircleOptions to add a new circle to a map. Each method returns the object itself so that they can be used in a builder pattern.

Class Members:
method
method center
DJICircleOptions center(DJILatLng center)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the center the new circle will have when added to the map.

Input Parameters:
DJILatLng centerThe coordinates of the center of the circle
Return:
DJICircleOptionsThe DJICircleOptions object.
method
method radius
DJICircleOptions radius(double radius)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the radius the new circle will have when added to the map.

Input Parameters:
double radiusThe radius of the circle in meters.
Return:
DJICircleOptionsThe DJICircleOptions object.
method
method zIndex
DJICircleOptions zIndex(float zIndex)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the zIndex the new circle will have when added to the map.

Input Parameters:
float zIndexThe zIndex of the circle.
Return:
DJICircleOptionsThe DJICircleOptions object.
method strokeWidth
DJICircleOptions strokeWidth(float width)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the stroke width the new circle will have when added to the map.

Input Parameters:
float widthThe stroke width of the circle in pixels.
Return:
DJICircleOptionsThe DJICircleOptions object.
method strokeColor
DJICircleOptions strokeColor(@ColorInt int color)
Package:com.dji.mapkit.core.models.annotations
Description:

Sets the stroke color the new circle will have when added to the map.

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

Sets the fill color the new circle will have when added to the map.

Input Parameters:
@ColorInt int colorThe fill color of the circle.
Return:
DJICircleOptionsThe DJICircleOptions object.