mapbox / mapbox/mapbox-maps-android

Please add click point param when click Annotation

Open
#2,589 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged feature :green_apple:
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

1.SOURCE CODE:

package com.mapbox.maps.plugin.annotation
fun interface OnAnnotationClickListener> {
fun onAnnotationClick(annotation: T): Boolean
}

2.My Suggestion:

package com.mapbox.maps.plugin.annotation
fun interface OnAnnotationClickListener> {
fun onAnnotationClick(point:Point, annotation: T): Boolean
}

Please!Sometimes I really need this function

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

Start by locating OnAnnotationClickListener in the com.mapbox.maps.plugin.annotation package and tracing where annotation click callbacks are dispatched. Check how the click location is currently available at that entry point and identify affected listener implementations or tests. Done means the callback exposes the click point while preserving the annotation result behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
api, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.