/leaflet-reticle

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

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

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.