Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onMarkerClick return 2 times when click at Marker #387

Closed
PhanVanLinh opened this issue Jun 28, 2017 · 1 comment
Closed

onMarkerClick return 2 times when click at Marker #387

PhanVanLinh opened this issue Jun 28, 2017 · 1 comment

Comments

@PhanVanLinh
Copy link

PhanVanLinh commented Jun 28, 2017

Here is my code for receive click at MarkerView

mMapBox.getMarkerViewManager().setOnMarkerViewClickListener(new MapboxMap.OnMarkerViewClickListener() {
    @Override
    public boolean onMarkerClick(@NonNull Marker marker, @NonNull View view,
            @NonNull MapboxMap.MarkerViewAdapter markerViewAdapter) {
        return true;
    }
});

But onMarkerClick always return 2 times whenever I click at a MarkerView. Why this happened and how can I solve it? Thank you
I see it notified fixed in here mapbox/mapbox-gl-native#8309 from March but now it still happened. I am using 'com.mapbox.mapboxsdk:mapbox-android-sdk:5.0.2@aar'

@cammace
Copy link
Contributor

cammace commented Jul 5, 2017

Could you update to 5.1.0 and see if the issue still exists. We are in the middle of fixing this issue and it might have gotten resolved. mapbox/mapbox-gl-native#8159 is tracking this. In the future, any issues related to the Map SDK should go in that repo for a quicker response.

@cammace cammace closed this as completed Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants