1

I'm using Google Maps API v2 in my app and I made custom info window when marker is clicked.

This is how it looks like right now, nothing special, just a simple info window.

But now I want to do this. So I want to put a button next to info window and the user needs to click the button that's next to the info window, not the info window itself.

Is this even possible? I did a lot of research on google and I didn't find a single thing that would help me. Is this even possible to achieve using this API? If it is, I would appreciate some pointers, useful links or even examples.

Guy
  • 6,414
  • 19
  • 66
  • 136
  • possible yes but I dont think in the sense you intend it to work, you can overlay something on the map in a view but if the map moves then your button wont follow the InfoWindow because its not relly on the map. Thats not to say you cant move the button on the view but it seems to be more work than what it worth – tyczj Dec 06 '13 at 21:43

1 Answers1

0

You can achieve clickability of a portion of an info window using a nice hack posted on another question here. Just use a 9-patch with some transparent pixels here and there as a background.

You will have only a problem with placement of upside-down caret on info window. Until this feature request is implemented, you can have it only at the bottom center.

Community
  • 1
  • 1
MaciejGórski
  • 22,187
  • 7
  • 70
  • 94