So, I can create a Gmap of nodes with addresses in Views all plotted on a Google map. I also have a Views Attachment which lists the same nodes with additional information (Phone, email, etc.). How can I click on a node item in the Attachment listing and have the corresponding node info bubble popup on the Gmap? Has anyone figured this out?

Comments

aWileyMcGee’s picture

I am doing the same thing tonight and have the same question. I am using Firebug and the Web Developer Addon for Firefox to find the location of the marker.

~kyle

milehighlife’s picture

Kyle,

Were you able to find a solution?

-Jeff

aWileyMcGee’s picture

Not yet.

I will not be able to work on it til later tonight.

I will post a solution if I find one.

~kyle

milehighlife’s picture

Kyle,

Just to clarify, you are using Gmap, Location, and Views modules (Mapadelic)? I've also investigated Google Map Tools module but it appears less mature.

Best of luck on your solution, I look forward to hear of your success.

Jeff

milehighlife’s picture

Kyle,

Just curious if you were ever able to create a solution for this?

Thanks.

ccpotter’s picture

...curious if anybody has found a solution for this?

milehighlife’s picture

I still have not found a solution but will keep digging. Maybe Kyle has discovered some success?

KerriO’s picture

I'm encountering this issue now.

I'm using " GEvent.trigger(Drupal.settings.gmap.auto1map.markers[i].marker, "click");" to trigger the popup for the marker, which goes by the indexed order of the nodes displayed in the view. Of course, for the attachment (in my case, just one node that is also in the main view), the index is always '1' (or '0'?), which is obviously not the correct index for the actual full list.

Right now I'm trying to get a very hack js workaround to work, which matches the nid field in the main view and returns its index, then uses that index number as the '[i]' in the attachment trigger. I know there's got to be a better way!