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.

MarkerViewOptions.anchor() moves the clickable area #7307

Closed

Description

@mariusboepple

Platform: Android
Mapbox SDK version: 4.2.0-beta.5

Steps to trigger behavior

  1. Create a Marker with MarkerViewOptions, a Bitmap icon and set .anchor(0.5f, 1f) to center the pin's needle.
  2. Set a OnMarkerClickListener to receive clicks.

Expected behavior

The clickable area are the Bitmap's bounds.

Actual behavior

The clickable area is shifted to the bottom centering the anchor - therefore the upper area of the marker is not clickable.

Activity

  1. added
    Android
    on Dec 7, 2016
  2. tobrun commented on Dec 7, 2016

    @tobrun
    Member

    @mariusboepple thank you for reaching out! This issue and a general improvement to our click handling system related to Marker and MarkerViews is documented in #6761. I now have added a note in #6761 (comment) to look into anchoring while looking into that issue. Closing as a duplicate and thanks again for taking the time to report this issue.

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions