Examples for react, vue, svelte and vanilla js using OpenFreeMap.org tiles with MapLibre GL JS libraries.
The OpenFreeMap + MapLibre GL JS Examples showcase basic examples using OpenFreeMap.org tiles with MapLibre GL JS libraries. Each example loads a base MapLibre GL JS map style URL set to https://tiles.openfreemap.org/styles/liberty and allows for the option to set the style URL to /styles/dark.json. The examples are hosted in the public folder of each app, with the dark style adapted from maptiler.com basic-v2-dark style. These examples also get the user's location via http://ip-api.com/json/, use map.flyTo to animate or zoom to the user's location, and display a popup on the map at the user's location.