views:

408

answers:

2

Hi,

I'm wondering if anyone knows whether it is possible to take the content of a Google Maps InfoWindow and place it in an external DIV when the marker on the map is clicked?

I've had a good dig around both the API docs and Google to see if I can find any examples or information relating to this but have had no luck so far. However I've not had a lot of time since I got asked about this one so I have had to skim a bit so it could be that I've missed something but nothing seems to be jumping out at me.

Essentially I'd just like to know if this is indeed possible so that I don't waste anymore time researching something that is currently not possible with Google Maps. However if anyone has any code, examples, or ideas about how to go about doing this then that would be a very much appreciated!

Thanks,

Mark

A: 

It's definitely possible. Just add each marker to an array, along with whatever data you want to display. Add a listener to each marker which will access that data when the marker is clicked.

See these questions:

Chris B
Hi,Just to say thanks for answering my question and pointing me in the right direction in the form of the related links.Cheers,Mark
Mark
A: 

I am trying to accomplish similar but without much success, would anyone have an example which I could see working?

Shane McCarthy