Skip to content

danmiser/polyline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

polyline

Simple static page that draws a straight line between two coordinates using Leaflet + OpenStreetMap.

Files

  • index.html β€” The map page. Open it and pass URL query parameters:
    ?lat1=40.2616&lon1=-76.969653&lat2=33.016416&lon2=-84.165564
    

Deploy to GitHub Pages

  1. Create a new public repository on GitHub (name it map-line or whatever you like).
  2. Upload index.html and README.md to the repository root.
  3. In the repository settings β†’ Pages, set the source branch to main (or master) and folder to / (root).
  4. 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

About

Bing Maps replacement for broken polyline between 2 points since they went to beta

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages