Skip to content

Latest commit

 

History

History
91 lines (86 loc) · 2.45 KB

File metadata and controls

91 lines (86 loc) · 2.45 KB

Circle class

Create

map.addCircle() Add a circle.

Methods

setCenter() Change the center position.
getCenter() Return the current center position.
setRadius() Change the circle radius.
getRadius() Return the current circle radius.
setFillColor() Change the filling color (inner color).
getFillColor() Return the current circle filling color (inner color).
setStrokeWidth() Change the stroke width.
getStrokeWidth() Return the current circle stroke width (unit: pixel).
setStrokeColor() Change the stroke color (outter color).
getStrokeColor() Return the current circle stroke color (outer color).
setClickable() Change clickablity of the circle.
getClickable() Return true if the circle is clickable.
setZIndex() Change the circle zIndex order.
getZIndex() Return the current circle zIndex.
remove() Remove the circle.
getBounds() Return the latLngBounds (rectangle) that contains the circle.
getMap() Return the map reference.

Events

CIRCLE_CLICK Arguments: LatLng
This event is fired when you click on a circle.