Appolica / InteractiveInfoWindowAndroid

Library project, developed and maintained by Appolica, offering an interactive info window for Google maps on Android.
249 stars 56 forks source link

Add support for interactive InfoWindows in clusters #13

Closed muffix closed 7 years ago

muffix commented 7 years ago

This changes the InfoWindow to use LatLng instead of Marker in order to make it interactive InfoWindows possible for markers that are managed by a ClusterManager (https://developers.google.com/maps/documentation/android-api/utility/marker-clustering).

With a cluster manager, not all markers are instantiated at the same time and so the markers cannot be passed to the InfoWindow. However, the InfoWindow only uses the marker's position, so we can generalise the InfoWindow implementation and use the position directly.