Closed (fixed)
Project:
Location
Version:
6.x-3.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2009 at 23:18 UTC
Updated:
23 Jan 2011 at 05:40 UTC
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
Comment #1
rooby commentedI 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.