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

Order of map movement/json loading #22

Open
thequbit opened this issue Dec 10, 2013 · 3 comments
Open

Order of map movement/json loading #22

thequbit opened this issue Dec 10, 2013 · 3 comments
Assignees

Comments

@thequbit
Copy link
Member

When you double click a county, it centers then zooms, but it's rather abrupt and there is a lag. It would be nice if we could get a smoother transition. Also, on the zoom out i think it should pan, then zoom out. We should look into whats going on to make it 'jumpy'.

@ghost ghost assigned Nolski Dec 10, 2013
@Nolski
Copy link
Contributor

Nolski commented Dec 10, 2013

This might be because you are double clicking instead of single clicking? Double clicking in leaflet or gmaps is recognized as a command for zooming. So I think what's happening is that you are zooming while the rest of the code is running.

@thequbit
Copy link
Member Author

That makes sense. Can we give it a try with just single click? I think that would work okay.

@Nolski
Copy link
Contributor

Nolski commented Dec 10, 2013

It's currently set up so that when you click on a county (one click) it will pan to the center point of that county, wait 600ms, then zoom in to the appropriate level (I think it is like 8 or something). Double clicking on a state will fire the click event that we wrote and then on the second click fire the zoom function which is built into leaflet core.

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

No branches or pull requests

2 participants