-
Notifications
You must be signed in to change notification settings - Fork 1.3k
featuresInSourceLayersWithIdentifiers returning empty every time. #9646
Comments
I was able to repro this in
I see the issue in iosapp with c2b0037#diff-3f30d11bf1ea37d78c1c04b6c00a605dL62 but not with a235032. cc @jfirebaugh |
Noting that this issue seems to be both on cc @boundsj |
I have the same problem. I test it with ios-v3.5.4, it's working there. |
I have repro'd this as well. I had to revert back to 3.5 on iOS. Would love to see this fixed soon. |
This was fixed in #9784. Will be released as part of iOS SDK v3.6.2 |
iOS SDK v3.6.2 has been released. |
@fabian-guerra Thank you. |
@fabian-guerra sometimes it's fetching only the visible features from source. But, it should fetch all the features right. This is not working consistently. |
I have the same issue. I have a cluster on map and zoom in until the cluster has dissolved. In this case the sdk crashes at the first zoom operation. |
@ThiyagarajanShivSankaran sorry to hear you are still having issues. Could you please provide a test app? |
@fabian-guerra I have a map with cluster and poi layers. Over a button you can select pois that are within a cluster. To show the poi layer on the map, I center the map first inn the poi coordinates. Then I increase the zoom level recursively until the cluster has resolved.
|
@AFcgi could you please make a separate ticket and attach the crash log? |
Hi @fabian-guerra I need to fetch all the features from the vector source, despite of zoom level or visible rect. Is there any way to do that. Thanks. |
@ThiyagarajanShivSankaran I think it's the same issue like #9888 |
Hi @fabian-guerra I need to fetch non-rendered features as well. Is it possible in mapbox IOS SDK. |
Hi @ThiyagarajanShivSankaran there is https://www.mapbox.com/ios-sdk/api/3.6.2/Classes/MGLVectorSource.html#/c:objc(cs)MGLVectorSource(im)featuresInSourceLayersWithIdentifiers:predicate with the following restriction: the source was associated with a layer that was recently used and the features were in the bounds of a recently scrolled to region. |
@fabian-guerra Okay.So there is no way to get non-rendered features. |
I am having the same issue with Mapbox iOS SDK 4.2. My end goal is to implement UISearch functionality against an MGLLineStyleLayer which has hundreds of lines with attributes. I was given the suggestion to use the -featuresInSourceLayersWithIdentifiers function. However, I have tried several implementation styles and always get nil return. The code below does:
Thank you!
|
any update on this? would love to get not rendered features from MGLShapeSource |
Platform: IOS
Mapbox SDK version: ios-v3.6.0
Steps to trigger behavior
MGLVectorSource
by usingsourceLayerIdentifiers
Expected behavior
It should return all the features from sourceLayers
Actual behavior
But it's returning empty array.
Below is my code,
I have checked the older SDK
ios-v3.5.4
, it's working there. Thanks.The text was updated successfully, but these errors were encountered: