Elements¶
Element models are Pydantic models defined in mapwidgets.map_elements.
Point¶
Point(lat=32.2207, lng=-98.2023)
Fields:
lat: floatlng: float
Marker¶
Fields:
position: Pointtitle: strdraggable: bool
Polyline¶
Fields:
path: list[Point]geodesic: boolstrokeColor: strstrokeOpacity: floatstrokeWeight: int
Polygon¶
Fields:
paths: list[Point]strokeColor: strstrokeOpacity: floatstrokeWeight: intfillColor: strfillOpacity: float
Circle¶
Fields:
center: Pointradius: floatstrokeColor: strstrokeOpacity: floatstrokeWeight: intfillColor: strfillOpacity: float
RectangleBounds¶
Fields:
north: floatsouth: floateast: floatwest: float
Rectangle¶
Fields:
bounds: RectangleBoundsstrokeColor: strstrokeOpacity: floatstrokeWeight: intfillColor: strfillOpacity: float