mapbox-android-demo icon indicating copy to clipboard operation
mapbox-android-demo copied to clipboard

Marker with Symbol Layer don´t work into OnResponse or onFailure Retrofit2

Open elviss116 opened this issue 5 years ago • 1 comments

Sorry for my bad English.

I created a marker with this tutorial https://docs.mapbox.com/android/maps/examples/marker-symbol-layer/ and perfect works

But when i test build a marker with Retrofit and ArrayList don't work

If I the marker is add outside the callback method if it works.

But if I add the marker inside the OnResponse or OnFailure it doesn't work

I tested my method OnResponse an Works Perfect

Works

image

Don't works image

My Response Method isn't the problem , its works perfect

image

elviss116 avatar Jan 29 '20 00:01 elviss116

Hey @elviss116 , thanks for using Mapbox. Sorry that you didn't get a response until now. Probably has to do with your symbolLayerIconFeatureList variable. What happens if you put List<Feature> symbolLayerIconFeatureList = new ArrayList<>(); inside of your onResponse() callback section?

langsmith avatar Sep 13 '20 19:09 langsmith