On this page

    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.

    
    
    An extension of MapLibre GL JS

    Was this helpful?

    SDK JS
    Examples
    Distance measurement on map
    Measure distances