You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Changing the style causes any annotations in view to become invisible. Any popover remains visible, and invisible annotations continue to respond to taps.
I'm ok with this being a stopgap again in b2, meaning you need to set style and leave it before adding/managing annotations for now. b3's focus thus far is better annotations.
Hi, so is there a stable beta version available that will address this issue for now? I don't mind re-adding the annotations etc, I just need this ready for a project due to launch in 3 weeks. Thanks
Ref #2326, is there any known workarounds for this?
This issue now persists across app launches in ios-v2.1.2 (even when closing the app from the task manager), making annotations unusable in any context where a style may be swapped.
@incanus Any ideas for how to bridge this bug? We've tried to looked into the c++ core, but can't really find the root problem.
For #2: What is the right way to expose a method by which sprites can be removed? Should there be a sister method to -MGLAnnotationImage annotationImageWithImage:reuseIdentifier: ? Maybe some kind of deleteAnnotationImageWithReuseIdentifier:? There already is a way to remove sprites from a sprite store, I just have to expose it somehow.
-[MGLMapView didReceiveMemoryWarning] would be a good place to perform this kind of work.
Not sure about that; if memory gets low, we could legitimately jettison cached tiles and the like, but getting rid of sprites would cause the map to not render annotations?
I think @1ec5 's idea was that we only jettison those that aren't being used anymore? But that's actually pretty tough to do if we're not informed of them. It might also break the contract of the API.
Activity
1ec5 commentedon May 9, 2015
Zooming in and out causes the annotations to appear and disappear – with the old style's sprites.
@bsudekum, this is likely the issue you were seeing with your React Native project.
incanus commentedon May 9, 2015
This will go away when we lift annotation imagery out of the sprite sheet. This might be an acceptable part of the b1 stopgap.
incanus commentedon Jun 15, 2015
I'm ok with this being a stopgap again in b2, meaning you need to set style and leave it before adding/managing annotations for now. b3's focus thus far is better annotations.
ejdslayer commentedon Sep 3, 2015
Hi, so is there a stable beta version available that will address this issue for now? I don't mind re-adding the annotations etc, I just need this ready for a project due to launch in 3 weeks. Thanks
kristfal commentedon Sep 17, 2015
Ref #2326, is there any known workarounds for this?
This issue now persists across app launches in ios-v2.1.2 (even when closing the app from the task manager), making annotations unusable in any context where a style may be swapped.
@incanus Any ideas for how to bridge this bug? We've tried to looked into the c++ core, but can't really find the root problem.
robipresotto commentedon Sep 17, 2015
@incanus map caches the icon annotation anyway if we set it after or before the map style. Any suggestion?
22 remaining items
adam-mapbox commentedon Nov 17, 2015
#1 is complete
For #2: What is the right way to expose a method by which sprites can be removed? Should there be a sister method to
-MGLAnnotationImage annotationImageWithImage:reuseIdentifier:? Maybe some kind ofdeleteAnnotationImageWithReuseIdentifier:? There already is a way to remove sprites from a sprite store, I just have to expose it somehow.1ec5 commentedon Nov 17, 2015
-[MGLMapView didReceiveMemoryWarning]would be a good place to perform this kind of work.incanus commentedon Nov 17, 2015
Not sure about that; if memory gets low, we could legitimately jettison cached tiles and the like, but getting rid of sprites would cause the map to not render annotations?
incanus commentedon Nov 17, 2015
Also, let's keep the discussion about @adam-mapbox's code in #3049 over in that ticket, instead of here in the problem side of things.
adam-mapbox commentedon Nov 17, 2015
I think @1ec5 's idea was that we only jettison those that aren't being used anymore? But that's actually pretty tough to do if we're not informed of them. It might also break the contract of the API.
incanus commentedon Dec 1, 2015
🎉
This should land in iOS 3.1.0 (next feature release) so no need to cherry-pick the fix anywhere just yet, as that will be based off of
master.