Simple static page that draws a straight line between two coordinates using Leaflet + OpenStreetMap.
index.htmlβ The map page. Open it and pass URL query parameters:?lat1=40.2616&lon1=-76.969653&lat2=33.016416&lon2=-84.165564
- Create a new public repository on GitHub (name it
map-lineor whatever you like). - Upload
index.htmlandREADME.mdto the repository root. - In the repository settings β Pages, set the source branch to
main(ormaster) and folder to/ (root). - Wait a minute. Your site will be available at:
https://<your-username>.github.io/<repo-name>/
Call it like:
https://<your-username>.github.io/<repo-name>/?lat1=40.2616&lon1=-76.969653&lat2=33.016416&lon2=-84.165564