Atlaslog
Atlaslog / Leaflet / API reference / CircleMarker
Leaflet · API reference

CircleMarker

Quick answer

L.circleMarker renders a vector dot whose radius is given in pixels, so it keeps a constant screen size at every zoom level. It is the usual choice for large point datasets and classification symbols. Colors, strokes and fill follow the standard Path options.

Last verified 2026-11-03 · Leaflet 1.9.4 · Cite this page
L.circleMarker( latlng , options ) → CircleMarker
Key points
Example
var dots = [];

function render(list) {
  dots.forEach(function (d) { map.removeLayer(d); });
  dots = list.map(function (item) {
    return L.circleMarker([item.lat, item.lng], {
      radius: 4 + item.value * 0.25,
      color: '#ffffff',
      weight: 1,
      fillColor: item.value > 60 ? '#c2410c' : '#1f5fd0',
      fillOpacity: 0.85
    }).bindTooltip(item.name + ':' + item.value).addTo(map);
  });
}
Notes
Runnable examplesChinese originalAll API references
English edition written for Atlaslog. Code is taken from the original Chinese page and runs unchanged.
Cite this page

Atlaslog (2026). CircleMarker. https://www.jingweizhi.com/en/leaflet/api/circle-marker.html (accessed 2026-11-03).