updateClusteredMarkers method
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');
}
}