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

Degree #6

Open
adam-ashored opened this issue Mar 28, 2021 · 1 comment
Open

Degree #6

adam-ashored opened this issue Mar 28, 2021 · 1 comment

Comments

@adam-ashored
Copy link

This is a valuable plugin! But what would make it more valuable is to specify what grid lines you want to see. For instance, I would like to display a "10 minute grid" - every 0.1 degree of lat/lng. I could envision an API that looks like this:

      MapPluginLatLonGridOptions(
        latDegrees: 1 // default - I could change this to be 0.1 to display a 10 minute grid
        lngDegrees: 1 //default
        // ...existing
      ),

Thoughts?

@matthiasdittmer
Copy link
Owner

matthiasdittmer commented Mar 29, 2021

The grid spacing depends on the zoom level so that between 5 and 7 lines are visible for latitude and longitude each. The current hard-coded solution in DD format only is not perfect.

For your "10 minute grid" additional logic is needed to define the spacing for lower and higher zoom levels to keep the line count in the reasonable range.

There should be a general solution supporting different degree formats with adaptive grid line spacing calculation:
• Format choosable in DD, DDM, DMS (https://www.pgc.umn.edu/apps/convert/).
• Optional a minimal/maximal grid spacing defined by the user.
• Optional the number of spacing steps between all zoom levels.

It was not implemented last year.

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