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
Source code in maplibre/controls.py
maplibre.controls.InfoBoxControl
Bases: Control
InfoBox control
Attributes:
Name | Type | Description |
---|---|---|
content |
str
|
Content (HTML or plain text) to be displayed in the info box. |
css_text |
str
|
Optional inline style declaration of the control. |
Source code in maplibre/controls.py
maplibre.controls.LayerSwitcherControl
Bases: Control
Layer switcher control
Attributes:
Name | Type | Description |
---|---|---|
layer_ids |
list
|
A list of layer ids to be shown in the layer switcher control. |
theme |
Literal['default', 'simple']
|
The theme of the layer switcher control. |
css_text |
str
|
Optional inline style declaration of the control. |