v2.10.0-beta.1
Pre-release
Pre-release
New Features ✨
- Introduce new experimental properties:
FillLayer.fillConstructBridgeGuardRail
,FillLayer.fillBridgeGuardRailColor
,FillLayer.fillTunnelStructureColor
,CircleLayer.circleElevationReference
. - Introduce
tapEvents
andlongPressEvents
API to the Annotation Managers to handle tap and long press event callbacks for annotations:
Example usage:manager.tapEvents( onTap: (annotation) { print("Tapped annotation: ${annotation.id}"); }, ); manager.longPressEvents( onLongPress: (annotation) { print("Long press annotation: ${annotation.id}"); }, );
Note
As part of this change, AnnotationOnClickListener
is now deprecated.
Tap events will now not propagate to annotations below the topmost one. If you tap on overlapping annotations, only the top annotation's tap event will be triggered.