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,
  8. String? stop1Color,
  9. String? stop2Color,
  10. String? iconPath,
})

Implementation

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