OpenFreeMap + MapLibre GL JS Examples
Basic examples using OpenFreeMap.org tiles with MapLibre GL JS libraries.
- Each example:
- Loads the base MapLibre GL JS map
- style url set to
https://tiles.openfreemap.org/styles/liberty
- option to set style url to
/styles/dark.json
- hosted in the public folder of each app
- dark style adapted from maptiler.com basic-v2-dark style
- Gets the users location via http://ip-api.com/json/
- Uses
map.flyTo
to animate / zoom to the users location
- Displays a Popup on the map at the users location
Examples