Circle Marker

Example

from ipyleaflet import Map, basemaps, basemap_to_tiles, CircleMarker

watercolor = basemap_to_tiles(basemaps.Stamen.Watercolor)

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_layer(circle_marker)

m

Attributes

Attribute Default Value Doc
location (0.0, 0.0) Circle location
radius 10 Circle radius in pixels
stroke True Set it to false to disable borders
color “#0033FF” Stroke color
opacity 1.0 Stroke opacity
weight 5 Stroke width in pixels
fill True Whether to fill the circle or not
fill_color None  
fill_opacity 0.2  
dash_array    
line_cap “round”  
line_join “round”