Markers and controls
maplibre.controls.Popup
Bases: BaseModel
Popup
Attributes:
Name | Type | Description |
---|---|---|
text |
str
|
The Text of the popup. |
options |
PopupOptions | dict
|
Popup options. |
Source code in maplibre/controls.py
maplibre.controls.PopupOptions
Bases: BaseModel
Popup options
Source code in maplibre/controls.py
maplibre.controls.Marker
Bases: BaseModel
Marker
Attributes:
Name | Type | Description |
---|---|---|
lng_lat |
tuple | list
|
Required. The longitude and latitude of the marker. |
popup |
Popup | dict
|
The Popup that is displayed when a user clicks on the marker. |
options |
MarkerOptions | dict
|
Marker options. |
Source code in maplibre/controls.py
maplibre.controls.MarkerOptions
Bases: BaseModel
Marker options
Source code in maplibre/controls.py
maplibre.controls.ControlPosition
Bases: Enum
Control position
Attributes:
-
TOP_LEFT
–top-left
-
TOP_RIGHT
–top-right
-
BOTTOM_LEFT
–bottom-left
-
BOTTOM_RIGHT
–bottom-right
Source code in maplibre/controls.py
maplibre.controls.FullscreenControl
Bases: Control
Fullscreen control
Examples:
Source code in maplibre/controls.py
maplibre.controls.ScaleControl
maplibre.controls.NavigationControl
Bases: Control
Navigation control
Source code in maplibre/controls.py
maplibre.controls.GeolocateControl
Bases: Control
Geolocate control