Using OpenFreeMap Vector Tiles
OpenFreeMap lets you display custom maps on your website and apps for free. It provides several vector tilesets for free, including:
- liberty: https://tiles.openfreemap.org/styles/liberty
- positron: https://tiles.openfreemap.org/styles/positron
- bright: https://tiles.openfreemap.org/styles/bright
For more information, please visit https://openfreemap.org/quick_start.
Uncomment the following line to install leafmap if needed.
In [1]:
Copied!
# %pip install "leafmap[maplibre]"
# %pip install "leafmap[maplibre]"
In [2]:
Copied!
import leafmap.maplibregl as leafmap
import leafmap.maplibregl as leafmap
In [3]:
Copied!
m = leafmap.Map(style="liberty")
m
m = leafmap.Map(style="liberty")
m
In [4]:
Copied!
m = leafmap.Map(style="bright")
m
m = leafmap.Map(style="bright")
m
In [5]:
Copied!
m = leafmap.Map(style="positron2")
m
m = leafmap.Map(style="positron2")
m