--- layout: api title: "v2.1.4 JavaScript Library: L.CircleMarker" categories: api version: v2.1.4 permalink: /api/v2.1.4/l-circlemarker/ ---
A circle of a fixed size with radius specified in pixels. Extends Circle. Use Map#addLayer to add it to the map.
Factory | Description |
---|---|
L.circleMarker(
|
Instantiates a circle marker given a geographical point and optionally an options object. The default radius is 10 and can be altered by passing a "radius" member in the path options object. |
Method | Returns | Description |
---|---|---|
setLatLng(
|
this |
Sets the position of a circle marker to a new location. |
setRadius(
|
this |
Sets the radius of a circle marker. Units are in pixels. |
toGeoJSON() |
Object |
Returns a GeoJSON representation of the circle marker (GeoJSON Point Feature). |