You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'.
The text was updated successfully, but these errors were encountered:
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.
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.
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'.
The text was updated successfully, but these errors were encountered: