updateClusteredMarkers method

Future<void> updateClusteredMarkers({
  1. required String clusterId,
  2. required String geoJson,
  3. int? clusterRadius,
  4. String? defaultMarkerColor,
  5. String? defaultClusterColor,
  6. double? textSize,
  7. String? textColor,
})

Update clustered markers with new GeoJSON and options

Implementation

Future<void> updateClusteredMarkers({
  required String clusterId,
  required String geoJson,
  int? clusterRadius,
  String? defaultMarkerColor,
  String? defaultClusterColor,
  double? textSize,
  String? textColor,
}) async {
  try {
    await _channel.invokeMethod('updateClusteredMarkers', {
      'clusterId': clusterId,
      'geoJson': geoJson,
      'clusterRadius': clusterRadius,
      'defaultMarkerColor': defaultMarkerColor,
      'defaultClusterColor': defaultClusterColor,
      'textSize': textSize,
      'textColor': textColor,
    });
  } catch (e) {
    debugPrint('Error updating clustered markers: $e');
  }
}