Basemaps
maplibre.basemaps.Carto
Bases: Enum
Carto basemap styles
Attributes:
-
DARK_MATTER
–dark-matter
-
POSITRON
–positron
-
VOYAGER
–voyager
-
POSITRON_NOLABELS
–positron-nolabels
-
DARK_MATTER_NOLABELS
–dark-matter-nolabels
-
VOYAGER_NOLABELS
–voyager-nolabels
Examples:
Source code in maplibre/basemaps.py
maplibre.basemaps.construct_basemap_style(name='nice-style', sources={}, layers=[])
Construct a basemap style
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
The name of the basemap style. |
'nice-style'
|
sources |
dict
|
The sources to be used for the basemap style. |
{}
|
layers |
list
|
The layers to be used for the basemap style. |
[]
|