I'd like to replicate this behavior:
So, the user would be able to choose a label to retrieve its information on Mapbox.
I'm currently utilizing the iOS SDK on SwiftUI, but I'm in search of a blueprint to implement this functionality or the essential steps to achieve it.
Unfortunately, I haven't come across any tutorials or comprehensive guides addressing this specific feature. Based on my analysis, here's the approach I believe might be effective:
Employing distinct layers within Mapbox Studio to enable the selectability of the label layer.
Implementing a tap gesture to control a pinned annotation and devising a method to determine the nearest label to the tap location...
Please let me know if you have any questions or need further assistance.