bpillon / google_maps_cluster_manager

Simple Flutter clustering library for Google Maps
https://pub.dev/packages/google_maps_cluster_manager
MIT License
119 stars 94 forks source link

New Future please #1

Closed furkankurt closed 4 years ago

furkankurt commented 4 years ago

Thank you for package!! I neew an InfoWindow for marker. Or could be clickable markers.

bpillon commented 4 years ago

Hello @furkankurt I think I don't understand your need. You are already able to set InfoWindow for marker in the MarkerBuilder method as it returns a Marker from the google_maps_flutter library, which has it :

static Future<Marker> Function(Cluster) get markerBuilder => (cluster) async {
  return Marker(
    markerId: MarkerId(cluster.getId()),
    position: cluster.location,
    onTap: onTap,
    infoWindow: InfoWindow(
          title: 'Title',
          snippet: 'Snippet',
    ),
    icon: await getClusterBitmap(cluster.isMultiple ? 125 : 75,
    text: cluster.isMultiple? cluster.count.toString() : null),
  );
};