setMarkersOpacity method

Future<void> setMarkersOpacity(
  1. double opacity
)

Sets the opacity of all currently visible native markers (GL Circles and Symbols) to opacity in a single bulk call — ideal for fade-in/fade-out animations.

Drive this with a Flutter AnimationController for smooth transitions:

_animController.addListener(() {
  await _mapController.setMarkersOpacity(_animController.value);
});
_animController.forward(from: 0); // 0.0 → 1.0 over the controller duration

Implementation

Future<void> setMarkersOpacity(double opacity) async {
  await markers.setMarkersOpacity(opacity);
}