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.

Switching styles turns annotations invisible #1488

Closed

Description

@1ec5

Changing the style causes any annotations in view to become invisible. Any popover remains visible, and invisible annotations continue to respond to taps.

pindrop

Activity

  1. 1ec5 commented on May 9, 2015

    @1ec5
    ContributorAuthor

    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.

  2. incanus commented on May 9, 2015

    @incanus
    Contributor

    This will go away when we lift annotation imagery out of the sprite sheet. This might be an acceptable part of the b1 stopgap.

  3. added this to the iOS Beta 2 milestone on May 11, 2015
  4. incanus commented on Jun 15, 2015

    @incanus
    Contributor

    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.

  5. modified the milestones: iOS Beta 3, iOS Beta 2 on Jun 15, 2015
  6. removed this from the iOS Beta 3 milestone on Jun 30, 2015
  7. ejdslayer commented on Sep 3, 2015

    @ejdslayer

    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

  8. kristfal commented on Sep 17, 2015

    @kristfal

    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.

  9. robipresotto commented on Sep 17, 2015

    @robipresotto

    @incanus map caches the icon annotation anyway if we set it after or before the map style. Any suggestion?

  10. self-assigned this
    on Sep 24, 2015
  11. 22 remaining items

  12. adam-mapbox commented on Nov 17, 2015

    @adam-mapbox
    Contributor

    #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 of deleteAnnotationImageWithReuseIdentifier:? There already is a way to remove sprites from a sprite store, I just have to expose it somehow.

  13. 1ec5 commented on Nov 17, 2015

    @1ec5
    ContributorAuthor

    What is the right way to expose a method by which sprites can be removed?

    -[MGLMapView didReceiveMemoryWarning] would be a good place to perform this kind of work.

  14. incanus commented on Nov 17, 2015

    @incanus
    Contributor

    -[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?

  15. incanus commented on Nov 17, 2015

    @incanus
    Contributor

    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.

  16. adam-mapbox commented on Nov 17, 2015

    @adam-mapbox
    Contributor

    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.

  17. incanus commented on Dec 1, 2015

    @incanus
    Contributor

    🎉

    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.

  18. added this to the ios-v3.1.0 milestone on Dec 8, 2015
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions