Circle.js

Circle()


constructor
Inherits from Path

Circle class is responsible for drawing circles on the map using the VectorLayer

Options:
  • radiusMeasure(String)The radius' unit of measurement: pixel or meter (default: pixel)
Parameter Type Description
center Array The circle's center coordinates
radius Number The radius of the circle expressed in the radius unit of measurement (default: 100)
options Object Circle's options

setRadius()


method

Sets a new radius of the circle

Parameter Type Description
radius Number The new radius

setCenter()


method

Sets a new center of the circle

Parameter Type Description
center Array The circle's new center coordinates