GmsCore icon indicating copy to clipboard operation
GmsCore copied to clipboard

Fix for white window with Mapbox flavor with custom tokens, added support for InfoWindow.

Open draekko opened this issue 4 years ago • 6 comments

Was having issues with various apps and especially with com.trusty.ty.satellite (satellite tracking app) where the app would only show a white area. After debugging and playing with logcat i found it was failing with the hardcoded styles since i was using my own token key i did not have them available to me. So i added a BuildConfig switch to toggle between default hardcoded ones, the default Mapbox styles, or adding the Uri for a custom style. The app was also complaining about field 8 for PolylineOptions being unknown so added that in as well. The app still doesn't work with markers showing their information but i guess that's a future battle.

draekko avatar Aug 30 '20 12:08 draekko

Update with new patch for adding support for InfoWindow to show/hide the title/snippet information with the associate pin under mapbox.

draekko avatar Sep 01 '20 11:09 draekko

"Removed exposure notification"? What am I missing here?

ljl-covid avatar Sep 10 '20 15:09 ljl-covid

Crap was tired yesterday updated the wrong repo! Is there a way to remove the last two commits to my tree from here?

draekko avatar Sep 10 '20 19:09 draekko

Those EN removal changes changes were supposed to be for my personal local branch only!

Ok removing them locally by pushing a reset and they seem to be gone now here as well, whew!

draekko avatar Sep 10 '20 19:09 draekko

Sorry, this isn't quite related to your change, but do you know where the token key is coming from? How is MapBox supposed to work? If I build MicroG myself, do I somehow end up with a different token than what's in the official builds?

dimaryaz avatar Apr 16 '21 06:04 dimaryaz

To answer my own question: it should be set using "mapbox.key" in "local.properties". And, if you set it to the key from the official build, suddenly everything works! Tried it with Uber, Lyft, and Yelp, and the map shows up now.

Why is the official key not mentioned anywhere? Is it supposed to be secret or something? It's not that hard to extract it...

dimaryaz avatar Apr 16 '21 07:04 dimaryaz

@draekko All of this seems to be already implemented by other people in the current microG. Could you please check if something is missing?

ale5000-git avatar Feb 20 '24 22:02 ale5000-git

@draekko All of this seems to be already implemented by other people in the current microG. Could you please check if something is missing?

Dude that was 4 years ago. I don't have that stuff on hand anymore.

draekko avatar Feb 23 '24 11:02 draekko

I will close it for now as it does seems everything is already supported as of now; if there is something missing just open a new one.

ale5000-git avatar Feb 23 '24 12:02 ale5000-git