Question

Hi Guys I am using Google Maps Android API v2. I loaded the Map and placed few Marker. I wanted to display a HTML URL in the "infoWindow" but Google seems to suggest its not possible https://developers.google.com/maps/documentation/android/infowindows#custom_info_windows. can it be done using "OnInfoWindowClickListener"? So that i open a dialogue box using this listener which contains a HTML URL?

Was it helpful?

Solution

I wanted to display a HTML URL in the "infoWindow" but Google seems to suggest its not possible

You can display pretty much whatever you want in an info window (though I have not tried anything that uses a SurfaceView). You cannot respond to clicks on anything other than then entire info window.

can it be done using "OnInfoWindowClickListener"? So that i open a dialogue box using this listener which contains a HTML URL?

You are welcome to do whatever you wish when the user clicks on an info window.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top