Maptiler styles
In [ ]:
Copied!
# %pip install "leafmap[maplibre]"
# %pip install "leafmap[maplibre]"
In [ ]:
Copied!
import leafmap.maplibregl as leafmap
import leafmap.maplibregl as leafmap
In [ ]:
Copied!
# import os
# os.environ["MAPTILER_KEY"] = "YOUR_API_KEY"
# import os
# os.environ["MAPTILER_KEY"] = "YOUR_API_KEY"
Then, you can use any named style from MapTiler by setting the style parameter to the name of the style.

In [ ]:
Copied!
m = leafmap.Map(style="streets")
m
m = leafmap.Map(style="streets")
m
In [ ]:
Copied!
m = leafmap.Map(style="satellite")
m
m = leafmap.Map(style="satellite")
m
In [ ]:
Copied!
m = leafmap.Map(style="topo")
m
m = leafmap.Map(style="topo")
m
