techmatters / terraso-mobile-client

A React Native project for Terraso’s LandPKS mobile application.
https://landpks.terraso.org
GNU Affero General Public License v3.0
2 stars 0 forks source link

feat: when we do not have access to user location, load the map in a more sensible location #1886

Open shrouxm opened 2 months ago

shrouxm commented 2 months ago

currently when the user has not granted location permission, the map loads in some fixed default position. we could improve on this by either:

Chosen Solution

paulschreiber commented 2 months ago

Related iOS bug: https://github.com/techmatters/terraso-mobile-client/issues/1750

knipec commented 1 month ago

Triage notes:

DerekCaelin commented 3 weeks ago

@CourtneyLee333 what do you think of this solutuon:

User has not provided permissions.

CourtneyLee333 commented 3 weeks ago

I think that's perfect, and matches what I'd thought of as well.

paulschreiber commented 3 weeks ago

0,0 is a bad spot. It's in the Atlantic Ocean. We should center on the middle of their country (IP geolocation?) or the center of the US.

DerekCaelin commented 3 weeks ago

0,0 at min zoom shows a large portion of the globe. Defaulting the U.S. wont work for global users. If users don't consent to sharing device location, I don't think we should look up their location, even approximate, via IP.