cloudybay / leaflet.latlng-graticule

Lat/Lon Graticule for Leaflet map
MIT License
56 stars 40 forks source link

Add label offset option #2

Closed IvanSanchez closed 3 years ago

IvanSanchez commented 8 years ago

Right now, the labels for the horizontal graticule lines overlap the graticule lines, making the numbers hard to read.

It would be nice to have some kind of offset option, as a L.Point, which would offset the horizontal labels vertically and the vertical labels horizontally, to improve readability.

Alternatively, provide a labelAlignment option to align the horizontal labels to top, middle or bottom of the horizontal graticules, and idem with left, center and right for vertical.