Skip to content

Draggable Symbols not working when setting mapview.setOnTouchListener(null) #1140

Open

Description

@virtuoso80

Hi, in my application I create symbols on the MapView using a SymbolManager and provide an option for dragging them by calling symbol.setDraggable(true) .

However, if I draw a line on the map and after finish drawing it I call mapView.setOnTouchListener(null), symbols can no longer be dragged. (followed guide Drawing Search Area: https://docs.mapbox.com/android/maps/examples/finger-draw-query/ )

Everything else (clicking and long clicking on lines, symbols etc) seems to be working ok. Also all other gestures (pan, zoom etc). I don't understand how setting the touch listener to null disables dragging the symbols.

Activity

  1. Ph0tonic commented on Aug 1, 2020

    @Ph0tonic
    Contributor

    Hello,
    You should be able to find some workaround for this issue here #884.

  2. englezakis commented on Aug 1, 2020

    @englezakis

    Thanks. Will check it right away.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions