boolder-org / boolder-android

Boolder Android app https://www.boolder.com/en/app
MIT License
28 stars 12 forks source link

Tap-to-zoom when zoom is low #39

Closed nmondollot closed 1 year ago

nmondollot commented 1 year ago

A recurring problem for first-time users is that they don't understand that they need to zoom a lot to be able to tap on a problem.

Solution: zoom automatically when a user taps on a boulder at a low zoom

A first-time user could for instance see a problem with 3 taps:

Demo iOS

https://github.com/boolder-org/boolder-android/assets/330823/f66fdbd4-3d17-4ba1-b50f-a8249930e906

Code iOS

https://github.com/boolder-org/boolder-ios/blob/b418c9d55501a911de4b49b6b2a8b8d51ae2c403/Boolder/UI/Map/MapboxViewController.swift#L468-L491 This code is a bit hacky and depends on the order of queries, so be careful!