Map Tiles
Leaflet
Tutorial on how to use Leaflet JS to create a map in a web page with Solvice Maps.
1
Install Leaflet
2
Install MapLibre
Unfortunately, we need the MapLibre GL JS library to handle the rendering of the map. You can install it using the following command:
3
Create Solvice Account
Copy the API key.
4
Choose a Solvice style
Do you prefer a light or dark theme? Choose one of the following styles: light
, dark
or color
.
5
Add API key
And change API_KEY with your own key.