I want to build an interactive Android map app. It will have different marker types and lots of of different options when clicking on them.
First approach : I started with the notion I will use custom infowindows but figured out that a map can have only single InfoWindowAdapter, with that said, this approach has another fault. InfoWindows can't have click listeners registered to them and I need to have some clickable UI to show after marker click.
Second approach : Marker click triggers an alertDialog which corresponds to the marker type. I'm hesitant because I'll have lots of switch case inside the OnActivityResult. Example - dialog fragments with OnActivityResult
Any other ideas ? Am I missing something ?