Siqister / city-x-city

MIT License
1 stars 3 forks source link

Snap zoom in #24

Closed nupoormonani closed 8 years ago

nupoormonani commented 8 years ago
allthesignals commented 8 years ago

@nupoormonani I could use a little more guidance on how this will work. This is a slippy map interface, so users are able to pan and zoom anywhere. I've added a zoom bar, but I'm not sure how the first bullet point will work. By default, double-click adjusts the zoom level by one. So, it sounds like we could override that default where double-clicking adjusts the zoom level by five, but it could put users in a random part of the map.

I think having the cities on the left zoom to their respective district bounding boxes when clicking (instead of just centering) would accomplish what we need for this issue. Thoughts? Feel free to sketch some things out here if you need: https://wireframe.cc.

nupoormonani commented 8 years ago

@allthesignals I think icon clustering solves this issue - at the state-wide zoom, a user would intuitively click on the cluster marker, which snaps to the district-scale.