Leaflet is a Javascript library used to make interactive maps on your website.
This is the code that decides what map to use, and what place to show at the beginning.
Just put it in a script tag in your webpage, then add these to lines, then it should be good to go.
Here you can see and download the complete code.https://github.com/NTNU-ITEM/Leaflet
728 thoughts on “Adding a map to a webpage, then updating it using mqtt”