0
votes

I'm using Mapbox SDK in my iOS app (using Swift). I want a label to show under every marker like this:

enter image description here

I couldn't find anywhere in the docs or on stackoverflow how I can achieve that. I tried to make the text a part of the marker image, but the text does not resize itself that way and things are a mess when markers are close (or when you zoom out).

Does anybody know how I can make that happen?

1

1 Answers

0
votes

Right now, you'll want to do this at the GL style level using Mapbox Studio — not as dynamic annotations.

Doing it in the style allows labels to be recalculated and customized based on the surrounding data and map state, whereas annotations currently aren't as customizable.