mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

Add click listener for circle annotations when use PointAnnotationGroup

Open agarasul opened this issue 1 year ago • 0 comments

New Feature

Currently in PointAnnotationGroup there is only callback for point annotation click. However if points clustered, there is no way to handle click on circle annotation

PointAnnotationGroup(
    annotations = items,
    annotationConfig = AnnotationConfig(
        annotationSourceOptions = AnnotationSourceOptions(
            clusterOptions = ClusterOptions(
                textColor = Color.WHITE,
                textSize = 10.0,
                circleRadius = 15.0
            ),
        ),
        layerId = "markers"
    ),
     onClick = {

     },
     onCircleClick = { 

     }
)

Why

In the app I would like to implement zoom when user clicks on circle annonation, but currently there isn't any way to do it

agarasul avatar Mar 29 '24 14:03 agarasul