Sunday, 16 June 2019

Android Mapbox how to capture marker clicks when using CirlceClustering layer

My Current Android application employs the excellent Mapbox SDK

implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:8.0.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v7:0.6.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-localization-v7:0.9.0'

My application displays approx 50,000 markers and I am using CircleLayer clustering.

The application works as required/expected apart from the fact I cannot see how to detect when my user clicks on any of the low level markers.

All the "Marker" related mapboxMap methods are all deprecated and direct the developer to employ

use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation">
   * Mapbox Annotation Plugin

However I cannot see how to use plugin-annotation to detect clicks on my low level markers.

What am I missing?



from Android Mapbox how to capture marker clicks when using CirlceClustering layer

No comments:

Post a Comment