Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

rwev/leaflet-reticle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leaflet-reticle demo

Leaflet control that adds reticle to map center, with independently calculated latitude and longitude scales. Also displays coordinates and (optionally, for United States only) elevation. gif

features

The calculations for the reticle scale are derived from L.Control.Scale with some key differences.

leaflet-reticle does the distance projections from map center, resulting in more accurate scaling at the point of focus (assumed to be center of map), especially for low zoom levels (low-scale) map views.

Additionally, leaflet-reticle does two separate projections and scaling calculations for latitude and longitude, further increasing scale accuracy.

integration

See index.html.

dependencies

Just leaflet.

About

Leaflet control that adds a centering reticle and displays a host of information about map center.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published