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.
Platform: iOS Mapbox SDK version: master as of edb487b
Steps to trigger behavior
Change some property of an annotation that makes it switch between annotation image and view. Typically to make one feature moveable and the rest not.
removeAnnotation + addAnnotation to tell MGLMapView to reload the annotation. Is there an other way to tell the MGLMapView to re-ask its delegate wether the annotations should be drawn as a image or with a view?
Expected behavior
The annotation should switch between image and view without problem.
Actual behavior
It sometimes work and sometimes crash with the following stack trace.
Sorry, but it looks like the problem only happen when I reload an annotation belonging to a MGLMapView that are dismissed at (almost) the same time.. That might be too much stress going on at the same time.
@boundsj tried with latest of the release-ios-v3.4.0 branch as of 67e079f now and it works perfect! :) Will that one go to master when 3.4.0 are released?
Activity
friedbunny commentedon Nov 23, 2016
Please include the specific commit hash when reporting issues with master. Thanks!
halset commentedon Nov 23, 2016
@friedbunny Thank you for the reminder. I have added it to the description.
halset commentedon Nov 23, 2016
Sorry, but it looks like the problem only happen when I reload an annotation belonging to a MGLMapView that are dismissed at (almost) the same time.. That might be too much stress going on at the same time.
halset commentedon Nov 23, 2016
Well, not only when the MGLMapView is dismissed.
boundsj commentedon Nov 23, 2016
@halset we've made several improvements the way view annotations are handled that are currently only in the Mapbox iOS SDK 3.4.0 release branch. Can you test using the release branch (https://github.com/mapbox/mapbox-gl-native/tree/release-ios-v3.4.0) or the latest published beta (currently https://github.com/mapbox/mapbox-gl-native/tree/release-ios-v3.4.0)? Thanks.
halset commentedon Nov 23, 2016
@boundsj tried with latest of the release-ios-v3.4.0 branch as of 67e079f now and it works perfect! :) Will that one go to master when 3.4.0 are released?
friedbunny commentedon Nov 23, 2016
@halset Yup, we will merge the release branch back into master once the release is finalized.