I’ve been playing with the Leaflet.js library over the Christmas holidays to visualize running routes drawn onto the map using a and I wanted to zoom the map the right amount to see all the points.

Pre-Requisites

We have the following HTML to define the div that will contain the map.



Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here