-
Notifications
You must be signed in to change notification settings - Fork 17
Allow zoomInterval smaller than 0.5 #4
Comments
Yes, I had to write some crazy modifications to the calculations before I could convert the labels to DMS. You can see my sloppy code on my Geodex repo. It's right in the graticule js file in the plugins folder. |
I did a quick and dirty workaround for me, because i also wanted to have negative north values instaed of positive south values: if(lat % 1 === 0) return '' + lat + 'N'; This works for intervall 0.01 and bigger and i am fine with this. Same for Longitude: |
I already solve this issue in my pull request: #5 |
How can I access the complete changed file now? |
My pull request is not yet accepted. You can find a fork which containing my modification by following this link: https://github.com/tagip/Leaflet.Graticule |
If i use a zoomInterval smaller than 0.5 the labels getting weird.
With 0.2 for example i get a label with 50.800000000000000001W instead of 50.8W.
Same for 0.1.
The text was updated successfully, but these errors were encountered: