DroidPlanner / Tower

Ground Control Station for Android Devices
https://play.google.com/store/apps/details?id=org.droidplanner.android
Other
621 stars 554 forks source link

Tower doesn't always display my Mapbox tiles #1831

Open PollyP opened 7 years ago

PollyP commented 7 years ago

I'm using Tower version 4.0 on a Nexus 7/Android 6.0.0 and am having problems with map tiles. I have it set up to use Mapbox as my map tiles provider. And the first time, it works. But as soon as I navigate away from the main vehicle data display and then navigate back, the Mapbox tiles are replaced by Google map tiles. I can get the Mapbox tiles to reload by going to the editor or vehicle history displays.

Steps to reproduce:

1) In my Mapbox account, I use their satellites-with-street-names style, and have my Mapbox id and access token set in Tower. And the first time I do that, I get the Mapbox tiles. I can simulate the initial state by changing my Mapbox id to something invalid. When I go back to the main display, I'll see an error message complaining about my invalid credentials. Then I go back to Settings and fix my Mapbox id, and then go back to the main display, vehicle data.

2) So I'm back at my vehicle data display page and I see exactly the satellite-with-street-names style I configured. So I'm using my Mapbox tiles - awesome!

3) Now I go to the Settings page and flip back, or maybe open another application and then go back to Tower. And my beautiful Mapbox tiles are gone, replaced by the generic Google street tiles.

This issue originated as a discussion on ardupilot: http://discuss.ardupilot.org/t/maptiles-provider-problems/12496