Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a custom info window in google maps V2

Tags:

I'm trying to make a custom window that look like that (for map objects).

User profile

But instead of the project following and follower I wanna place an image, but I can't figure out how to make one, any refferes? thanks in advance.

like image 881
crazyPixel Avatar asked Jul 01 '13 17:07

crazyPixel


People also ask

How do I customize the Google Maps window pop up?

You can modify the whole InfoWindow using jquery alone... var popup = new google. maps. InfoWindow({ content:'<p id="hook">Hello World!

What is info window in Google map?

An InfoWindow displays content (usually text or images) in a popup window above the map, at a given location. The info window has a content area and a tapered stem. The tip of the stem is attached to a specified location on the map.


2 Answers

its just an xml layout like other layouts would be. check here for a small tutorial.

Just remember that buttons in the layout will not work

like image 82
tyczj Avatar answered Sep 18 '22 04:09

tyczj


Read this post to understand how to create custom infowindows. You can add the required imageviews inside the xml layout file and render the layout as the infowindow

like image 36
tony m Avatar answered Sep 18 '22 04:09

tony m