mapbox / mapbox/mapbox-maps-ios
Visible property is removing ViewAnnotation from the list
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
I have integrated a functionality in which I have to show/hide my view annotation but I have seen that once visibility property is set either true or false then I am unable to access that view annotation which is really strange. SO please let me know what's going on. I am testing even after setting a `visible` to true it is showing but I am unable to access that with `associatedFeatureId`
`print(mapView.viewAnnotations.view(forFeatureId: "abc_xyz") == nil)`
This is returning true after setting visible property either `true` or `false` no matter
Update:
changing any property is kind of removing the annotation means that you can only update the annotation at once and after that you won't be able to find the annotation by id and that's a strange behavior.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the iOS viewAnnotations API, changing the visible property and then calling view(forFeatureId: "abc_xyz"). Confirm whether changing visibility or another property makes the annotation inaccessible; done means the annotation remains retrievable by its associated feature ID after updates.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100