Closed (won't fix)
Project:
GMap Module
Version:
5.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2007 at 21:52 UTC
Updated:
4 Nov 2012 at 00:57 UTC
How can I link from a node to the gmap map view of all of this node type such that it, amidst all other markers, opens the infoWindow for that node?
Comments
Comment #1
bdragon commentedWell, I just made it possible to have an info window automatically expand by setting $marker['autoclick'] = true;...
Not quite sure how to set this on the correct marker though.
Need to think about it some more.....
Comment #2
texas-bronius commentedI wish I had time to look into this as well, but probably won't..
However, maybe it would help to share some of the struggle of how-to. For instance, is the difficulty in identifying a marker by ID so some variable could be passed into the gmap macro? Is it, once identified, getting google maps api to respond and pop a particular one open?
Comment #3
swentel commentedHi,
Is the info on http://drupal.org/node/150939 of any help for you ?
Comment #4
dwb17 commentedThis works for gmap 6.x.1.1-rc1 with views gmap style.
You can edit the function render() in gmap_plugin_style_gmap.inc on line 127 inserting an if statement
and then in the markers array add 'autoclick' => $info_exp,. By adding the nid argument to the href of the of say a list of links on a seperate node you will be able to link to a specific gmap info window.
Hopes this Helps.
Comment #5
summit commentedHi Trying the same...but not working.
Can't somehow autoclick be added to the Gmap Macro in the gmap Views ...something like
Current code
Not working though...
#4, can you please give the complete function changes please? Where precisely to input that code? And how to add 'autoclick' => $info_exp to the array?
I am not a programmer. Thanks a lot in advance for your reply!
Greetings, Martijn
Comment #6
podarokrelease unsupported
feel free to open issue against latest 7.x dev