Mapbox-gl-native: [Android] Dispatch touch event from MarkerView to MapView

Created on 17 Jun 2016  路  8Comments  路  Source: mapbox/mapbox-gl-native

Platform: Android
Mapbox SDK version: 4.1.0-beta.2

Steps to trigger behavior

I tried to use MarkerView instead of Marker. When I want to scroll the map, if I touch a marker view, the scroll doesn't work. See here:
ezgif com-video-to-gif 1

Expected behavior

When I begin to scroll the map with a finger on a MarkerView, the touch should be delegated to the map.

Android annotations bug

Most helpful comment

6773 got merged to resolve #6055, going to rebase my PR in #5639 and see if it still works.

All 8 comments

@Hugoo13 thank you for reaching out. You are correct that this behaviour isn't right. Will try patching this up and go for the same approach as with iOS. eg. handling click in core instead of the View object itself.

I'm removing this from the 4.1.0 milestone, change impacts the code a bit too much just before release.

Looking into this now, solution will be to let core determine pressed marker views instead of using the Android SDK onClick event.

I'm working on a proposed solution in #5639

This is on hold to merge until underlying logic is being sorted out

Explicitly noting that this issue depends on #6055 getting resolved first

6773 got merged to resolve #6055, going to rebase my PR in #5639 and see if it still works.

5639 was merged, closing

Was this page helpful?
0 / 5 - 0 ratings