Hi,

Sorry if I missed it but I searched the issues and didn't find anything.

How can I program a link to load a location on my maps page?

Say I have my map placed on node/204. I have some links located in a block on my site.. One of the links, for example, is AT&T Park and the address is 24 Willie Mays Dr, San Francisco, CA.

I know how to geocode an address to get the LAT/LONG. coordinates... but what I'm asking for is a framework code to make a link, when clicked, connect to my google maps database and load that location on the map in node/204.

Any suggestions?

Thanks for the help! Great module..

Comments

rooby’s picture

Status: Active » Fixed

I would do this:
* Have a content type for these places in your links and create a node for each place with the address and coordinates (these can be geocoded if you have that enabled).
* Create a gmap view that displays nodes of the type you just created with a node id argument.
* Then for your links link them to your-view-path/nid where nid is the node ID if the place node for that address.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.