Package com.yandex.mapkit.map
Interface CircleMapObject
All Superinterfaces:
interface CircleMapObject extends MapObject
The circle element.
Summary
Methods
Type and modifiers |
Method and Description |
void |
setGeometry(@NonNull Circle geometry) |
int |
getStrokeColor() |
void |
setStrokeColor(int strokeColor) |
float |
getStrokeWidth() |
void |
setStrokeWidth(float strokeWidth) |
int |
getFillColor() |
void |
setFillColor(int fillColor) |
boolean |
isGeodesic()
|
void |
setGeodesic(boolean geodesic) |
Methods
getGeometry
@NonNull |
setGeometry
void setGeometry(@NonNull Circle geometry) |
getStrokeColor
int getStrokeColor() |
Sets the stroke color.
Setting the stroke color to any transparent color (for example, RGBA code 0x00000000) effectively disables the stroke. default: 0x0066FFFF
setStrokeColor
void setStrokeColor(int strokeColor) |
getStrokeWidth
float getStrokeWidth() |
Sets the stroke width in units.
The size of a unit is equal to the size of a pixel at the current zoom level when the camera position's tilt is equal to 0 and the scale factor is equal to 1. default: 5
setStrokeWidth
void setStrokeWidth(float strokeWidth) |
getFillColor
int getFillColor() |
Sets the fill color.
default: 0x0066FF99
setFillColor
void setFillColor(int fillColor) |
isGeodesic
boolean isGeodesic() |
The object's geometry can be interpreted in two different ways:
- If the object mode is 'geodesic', the object's geometry is defined on a sphere.
- Otherwise, the object's geometry is defined in projected space.
setGeodesic
void setGeodesic(boolean geodesic) |