Set Coordinates Example

4 posts / 0 new
Last post
Javanna
Set Coordinates Example

Hello I'm following the "Set Coordinates" example that's in the Maps Android SDK docs, I copied the code in a new activity that's called from the main one and the map displayed by the emulator is not as the one shown in the example even if the parameters are the same.. the map loaded don't show the streets nor the name it's only the static map zoomed in without details.

I'm sorry I'm a newbie on android and maybe is there something I should have done other than adding the code in the Maps Android SDK intro and the one in the Set Coordinates one?

Thank you in advance


MQBrianCoakley
Is the CameraPosition.Builder
Is the CameraPosition.Builder method being called?

Javanna
Yes just like in the example,

Yes just like in the example, assigned to a variable. Should I call it in some other way?

If it can help here's some samples of the error in the LogCat:

"[Setup]: loading style failed: Unable to resolve host "content.mqcdn.com": No address associated with hostname"
"[Style]: Failed to load source composite: Unable to resolve host "api.mapbox.com": No address associated with hostname"2019-04-01 16:14:54.445 14810-"

"[Style]: Failed to load tile 11/426/777=>11 for source composite: Unable to resolve host "api.mapbox.com": No address associated with hostname"

 


MQBrianCoakley
It sounds like the app doesn
It sounds like the app doesn't have internet access. All of the data comes from external resources and it needs internet access.