mapbox / mapbox/mapbox-plugins-android

mapView.setOnTouchListener#onTouch is not invoked with Annotations

Open
#884 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

annotation-plugin
Dominant language
Java
Stars
242
Forks
116
PR merge metrics
No merged PRs in 30d

Description

I set onTouchListener for MapView and the code inside the block as below was invoked each time.

  mapView.setOnTouchListener { view, event -> ... }

However, after initializing LineManager, View.OnTouchListener has no effect. What is causing it and how can I fix it?

Platform: Android
mapboxAnnotationsVersion = '0.5.0'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on Android with MapView.setOnTouchListener and mapboxAnnotationsVersion 0.5.0, then inspect how LineManager handles MapView touch events. Determine why initializing LineManager prevents the listener from running and verify the documented or implemented fix by confirming the listener is invoked afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.