java.lang.Object | |
↳ | com.google.android.gms.maps.model.CircleOptions |
Defines options for a Circle
.
For more information, read the Shapes developer guide.
[Expand]
Inherited Constants | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates circle options.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the center using a
LatLng . | |||||||||||
Sets the fill color.
| |||||||||||
Returns the center as a
LatLng . | |||||||||||
Returns the fill color.
| |||||||||||
Returns the circle's radius, in meters.
| |||||||||||
Returns the stroke color.
| |||||||||||
Returns the stroke width.
| |||||||||||
Returns the zIndex.
| |||||||||||
Checks whether the circle is visible.
| |||||||||||
Sets the radius in meters.
| |||||||||||
Sets the stroke color.
| |||||||||||
Sets the stroke width.
| |||||||||||
Sets the visibility.
| |||||||||||
Sets the zIndex.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||||||||||||||||||||||||
From interface
android.os.Parcelable
|
Creates circle options.
Sets the center using a LatLng
.
The center must not be null.
This method is mandatory because there is no default center.
center | The geographic center as a LatLng . |
---|
CircleOptions
object
Sets the fill color.
The fill color is the color inside the circle, in the integer
format specified by Color
.
If TRANSPARENT is used then no fill is drawn.
By default the fill color is transparent (0x00000000
).
color | color in the Color format |
---|
CircleOptions
object
Returns the circle's radius, in meters.
Returns the stroke width.
Returns the zIndex.
Checks whether the circle is visible.
Sets the radius in meters.
The radius must be zero or greater. The default radius is zero.
radius | radius in meters |
---|
CircleOptions
object
Sets the stroke color.
The stroke color is the color of this circle's outline, in the integer
format specified by Color
.
If TRANSPARENT is used then no outline is drawn.
By default the stroke color is black (0xff000000
).
color | color in the Color format |
---|
CircleOptions
object
Sets the stroke width.
The stroke width is the width (in screen pixels) of the circle's outline. It must be zero or greater. If it is zero then no outline is drawn.
The default width is 10 pixels.
width | width in screen pixels |
---|
CircleOptions
object
Sets the visibility.
If this circle is not visible then it is not drawn, but all other state is preserved.
visible | false to make this circle invisible |
---|
CircleOptions
object
Sets the zIndex.
Overlays (such as circles) with higher zIndices are drawn above those with lower indices.
By default the zIndex is 0.0.
zIndex | zIndex value |
---|
CircleOptions
object