Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Not able to select MarkerView #8573

Closed
Closed

Description

@IonAalbers

Using the latest SDK, I'm not able to keep the selected state of a MarkerView.
The MarkerViewAdapter received a onSelect which is followed by a onDeselect, therefor not possible to keep the selected state.

It can be avoided by setting setDeselectMarkersOnTap(false) because the GestureListener causes the AnnotationManager.deselectMarkers() to be called.

Platform: Android 7.1
Mapbox SDK version: 5.0.1

Steps to trigger behavior

  1. Use the MainActivity class that is added to this issue
  2. Tap the marker
  3. Marker gets selected, but immediately deselected

MainActivity.txt

Expected behavior

Marker stays selected.

Activity

  1. Emeritus-DarranKelinske commented on Mar 30, 2017

    @Emeritus-DarranKelinske

    +1

  2. added
    Android
    on Mar 30, 2017
  3. added this to the android-v5.0.2 milestone on Mar 30, 2017
  4. tobrun commented on Mar 30, 2017

    @tobrun
    Member

    #8585 reverts touch changes made for the 5.0.0 release, we are planning a 5.0.2 shortly containing this fix. Thank you for reporting this!

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

    Android

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions