Distance measurement on map
To calculate distances on the map, simply click on different points to create lines that will measure the distances using the turf.length function. This feature allows you to accurately determine the distance between any two points on the map.
Related examples
An extension of MapLibre GL JS