Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Handle transfer of annotations from one container view to another #5212

Closed

Description

@boundsj

In #5194 we added a container view to hold annotation objects. This allowed us to use a strategy of adding all annotation views to the container view before adding it the container to the map as a subview. This resulted in a dramatic speed gain for annotation subview additions to the container. When additional subviews are added, that implementation expects to be able to take all of the subviews from the previous container and add them to a new container (enjoying the same speed benefit as when the annotation subviews were added the first time). However, even when the annotation views are removed from the previous container view, they trigger the trigger the UIKit Visitor performance issue. We should investigate more to support this case of N+1 annotation views. In the meantime, the workaround (when dealing with annotation views at scale) is to simply remove all existing annotation views and re-add all of them when you add any additional views.

Activity

  1. added
    iOS
    annotations
    on Jun 1, 2016
  2. added
    archived
    on Nov 18, 2018
  3. stale commented on Nov 20, 2018

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    annotationsarchivedbugiOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions