Circle#

Example#

from ipyleaflet import Map, basemaps, basemap_to_tiles, Circle

watercolor = basemap_to_tiles(basemaps.Stamen.Watercolor)

m = Map(layers=(watercolor, ), center=(53, 354), zoom=5)

circle = Circle()
circle.location = (50, 354)
circle.radius = 50000
circle.color = "green"
circle.fill_color = "green"

m.add_layer(circle)

m

Attributes#

class ipyleaflet.leaflet.Circle(**kwargs)[source]#

Circle class, with CircleMarker as parent class.

Circle layer.