addClusteredMarkers method
Implementation
Future<String?> addClusteredMarkers({
required String geoJson,
int? clusterRadius,
String? defaultMarkerColor,
String? defaultClusterColor,
double? textSize,
String? textColor,
String? stop1Color,
String? stop2Color,
String? iconPath,
}) async {
try {
final result = await _invoke('addClusteredMarkers', {
'geoJson': geoJson,
'clusterRadius': clusterRadius,
'defaultMarkerColor': defaultMarkerColor,
'defaultClusterColor': defaultClusterColor,
'textSize': textSize,
'textColor': textColor,
'stop1Color': stop1Color,
'stop2Color': stop2Color,
'iconPath': iconPath,
});
return result as String?;
} catch (e) {
debugPrint('Error adding clustered markers: $e');
return null;
}
}