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

Ability to set/change an extent to the graticule and to change the interval #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

shane-brennan
Copy link

Hi,

I added the ability to pass in/change an extent (such as the current map.getBounds()). This allows small intervals with very good performance when zoomed in. I also added the ability to change the interval. Changes to extents and intervals are set via a refresh() function. I created a demo to show the interval and extent changing as the user pans/zooms the map. Critiques are welcome, for example, the added extent functionality doesn't work so well with the Mollweide projection due to it's strange handling of map.getBounds() (when zoomed out, map.getBounds().getWest() and ...getEast() return 0)

@bhaskarvk
Copy link

+1

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

Successfully merging this pull request may close these issues.

3 participants