This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ios] Guard against annotation reuse when there is no identifier
This protects against a crash that would occur when view reuse was attempted in cases where the map view delegate did not ask for it. It also fixes a bug where annotation views were attempted when the map view delegate did not implement the correct delegate method. It also moves the call to `updateAnnotationViews` back to `glkView:drawInRect` since doing it in `notifyMapChange` introduced lag. Additional optimizations may occur in future commits to make the work required to hide and show views and handle view reuse less intensive. In addition, the example MBXAnnotationView is simplified to just a programatic view with a center panel that can change color. The color changing center panel is used to indicate if a vie has gone through the reuse queue.
- Loading branch information
Showing
5 changed files
with
44 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters