mapzen / ios

Where you can find everything iOS from Mapzen
https://mapzen.com/projects/mobile/
Apache License 2.0
40 stars 24 forks source link

Improve gesture handling when current location tracking enabled #293

Open sarahsnow1 opened 7 years ago

sarahsnow1 commented 7 years ago

Allow pinching to occur. Currently, the map is re-zoomed if a new location is received when in the middle of a pinching gesture.

msmollin commented 7 years ago

After much exploration and testing, we're going to need a couple additions to Tangram to really enable a robust solution for this. https://github.com/tangrams/tangram-es/issues/1511 & https://github.com/tangrams/tangram-es/issues/1512

1511 is absolutely required to make this work correctly. 1512 is a "nice-to-have" because without it, during a pinch you can also get a shove or pan gesture recognition to happen and it will drag the zoom point off center. The next time a location update comes in though, it will recover and re-center itself, so it's not too bad and it does require some effort to make it happen.

msmollin commented 7 years ago

cc @karimnaaji / @matteblair / @tallytalwar

msmollin commented 7 years ago

For historical reference for implementation suggestions, see #125