Circle Marker#
Example#
from ipyleaflet import Map, basemaps, basemap_to_tiles, CircleMarker
watercolor = basemap_to_tiles(basemaps.Stadia.StamenTerrain)
m = Map(layers=(watercolor, ), center=(53, 354), zoom=5)
circle_marker = CircleMarker()
circle_marker.location = (55, 360)
circle_marker.radius = 50
circle_marker.color = "red"
circle_marker.fill_color = "red"
m.add(circle_marker)
m
Attributes#
- class ipyleaflet.leaflet.CircleMarker(**kwargs: Any)[source]#
CircleMarker class, with Path as parent class.
CircleMarker layer.
- location#
Location of the marker (lat, long).
- Type:
list, default [0, 0]
- radius#
Radius of the circle marker in pixels.
- Type:
int, default 10
- radius#
radius of circle in pixels