Skip to content

Order of initialization of annotation managers matters! #863

Closed

Description

@androideveloper

I have found a weird bug! When you initialize symbol manager and the circle manager, your symbol can't be dragged! If you change the order of initialization it works!

Steps to reproduce

Demo https://www.dropbox.com/s/ympu7zg722vehty/MapboxSymbolDragDemo.zip?dl=0

Try to change order of initialization:
symbolManager = SymbolManager(mapView, mapboxMap, style)
circleManager = CircleManager(mapView, mapboxMap, style)

Expected behavior

Symbol should be draggable in any case

Actual behavior

Symbol is draggable only, if circle manager initialized first

Configuration

Android versions: 9.0
Device models: Xiaomi mi 2 lite
Mapbox SDK versions: 7.2.0, plugin-annotation-v7:0.5.0

Activity

  1. LukasPaczos commented on Mar 22, 2019

    @LukasPaczos
    Contributor

    This is an interesting case, thanks for the report @androideveloper.

    Because we are using mapView.setOnTouchListener() to intercept touch events, only the last created manager will have draggable annotations.

    There seem to be 2 ways of resolving this:

    Will update this ticket with progress, if we find any of above viable.

  2. androideveloper commented on Mar 22, 2019

    @androideveloper
    Author

    @LukasPaczos Thanks for the update! I will keep it as the last created manager until this is resolved.

  3. stale commented on Sep 18, 2019

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  4. added
    archived
    on Sep 18, 2019
  5. stale commented on Sep 18, 2019

    @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.

  6. removed
    archived
    on Sep 18, 2019
  7. stale commented on Mar 16, 2020

    @stale

    Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

  8. added
    archived
    on Mar 16, 2020
  9. stale commented on Mar 17, 2020

    @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.

  10. adrianababakanian commented on Mar 27, 2020

    @adrianababakanian

    We should re-open this, since recent reports on Stack Overflow indicate that developers are still encountering the issue.

  11. removed
    archived
    on Mar 27, 2020
  12. m0nac0 commented on May 24, 2020

    @m0nac0

    We're also encountering this in the mapbox_gl flutter plugin (tracked at flutter-mapbox-gl/maps#130). This is kind of significant, as it means that we can only have one draggable annotation type.

  13. m0nac0 commented on Jun 15, 2020

    @m0nac0

    @adrianababakanian @LukasPaczos Sorry for spamming, but do you know if this is being worked on? Otherwise we'd have to find some workaround for the mapbox_gl flutter plugin to support draggable annotations.

  14. virtuoso80 commented on Jul 13, 2020

    @virtuoso80

    Hello. Has there been a workaround for this? My application stops registering drag events after setting mapview.setOnTouchListener(null)
    when following this guide https://docs.mapbox.com/android/maps/examples/finger-draw-query/

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions