geohierarchy.maps.folium.basemap¶
Basemap presets and helpers for building the map background (MapLibre vector style or raster XYZ).
build_tile_layer(basemap)
¶
Build the background layer from a preset name, dict, or passthrough instance.
Presets starting with openfreemap_ (or a dict with a style URL) give a
MapLibre vector-tile background (a :class:MapLibreBasemap); the rest are raster
folium.TileLayers.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
basemap
|
Union[str, dict, Any]
|
One of: a preset name (key of :data: |
required |
Returns:
| Type | Description |
|---|---|
|
A |
|
|
side and the provider's real |
|
|
upscales tiles beyond what the provider natively serves. |
Raises:
| Type | Description |
|---|---|
KeyError
|
If |
TypeError
|
If |