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

Graticule interval does not reset when zooming out if extent is set #13413

Closed
mike-000 opened this issue Feb 23, 2022 · 0 comments · Fixed by #13415
Closed

Graticule interval does not reset when zooming out if extent is set #13413

mike-000 opened this issue Feb 23, 2022 · 0 comments · Fixed by #13415
Labels

Comments

@mike-000
Copy link
Contributor

Describe the bug
The graticule interval does not reset correctly when zooming out if an extent is set.

To Reproduce
Set an extent on the Map Graticule example so only the 5 and 10 degrees meridians and 45 and 50 degree parallels are visible https://codesandbox.io/s/graticule-forked-fhqdpt?file=/main.js Zoom in until more lines are visible at 2 and then 1 degree intervals. Then zoom out again - the interval remains at 2 degrees.

Expected behavior
The extent should not affect the interval which should depend only on resolution, and interval should be the same whether the resolution is reached by zooming or in by zooming out.

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

Successfully merging a pull request may close this issue.

1 participant