Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a getPrecision() method showing # of decimals current grid is showing #17

Closed
jywarren opened this issue Jun 16, 2017 · 4 comments
Closed
Milestone

Comments

@jywarren
Copy link
Member

jywarren commented Jun 16, 2017

So if the grid drawn is to 44.001 precision, .getPrecision() would return 3. This should have a test written to it -- zoom the map with a Leaflet command, and check that the precision has changed!

It can be calculated based on the zoom level of the map, and should match the grid drawn by the Grid system (detailed in #18).

As the map is zoomed in and out, the precision will change (as shown in the displayed grid).

@mridulnagpal
Copy link
Member

@jywarren Is there anything left of this issue?

@jywarren
Copy link
Member Author

jywarren commented Jun 22, 2017 via email

@mridulnagpal
Copy link
Member

Is this done?

@jywarren
Copy link
Member Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants