Mapbox iOS - Cannot find the function similar to "visibleFeatures" on version 10

I'm working on task migration Mapbox from version 3.6 to version 10.0 Now I'm facing the issue that in the old version, I use "visibleFeatures" function to get MGLFeature when user tap on the map.

@objc func handleTapWithGestureRecognizer(_ tapGestureRecognizer: UITapGestureRecognizer) {
let point = tapGestureRecognizer.location(in: mapBoxView)
let target = mapBoxView.visibleFeatures(at: point, styleLayerIdentifiers: ["layer01", "layer02"], predicate: NSPredicate(format: "%K != '' AND offset >= 0 ","local_path"))
...

}

But at version 10.0, I could not find any function similar to "visibleFeatures". Anyone please help

Thank you all!



Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept