Simple example made with plain javascript, Mapbox GL JS, Leaflet and mapbox-gl-leaflet. You can get your own API key from Mapbox in their website.
This app allows you to know how far can walk from your home (1 Km / ~0.6 miles) during the plan for the Transition toward a new normality from the spanish government.