I have a problem, I want to add different images on a marker at runtime.
I can basically add images in style and then I have to load the map to add a marker with a different image.
This is how I add images in mapbox right now
mapView.getMapAsync {
it.setStyle(Style.Builder().fromUrl("mapbox://styles/{user}/{mapid}")) { style ->
// Add the marker image to map
ContextCompat.getDrawable(this, R.drawable.ic_user_one_round)?.let { img ->
style.addImageAsync("key", img)
}
}
Mapbox should be able to show images or render it at runtime on a different marker.
For example, snap chat using it right now.