Hi Drupalers,
Few days I've been unsuccessfully looking for a solution to a problem, initially thought it was easy.
How could embed maps.google.com a node? This should only have three fields... First, a text field to collect the search's contents, the following will be button to perform the search and finally the map, which represents the search result. You can see why I refer to embed maps.google... I've been thinking over several days and not find anything, I need a push, a new line to search.
I'm using Drupal 6.16 and I try to use GMap, Location, googleajaxsearch, embed_gmap without success.
In another section of the site I used Maptraction module working together with Mapstraction CCK, have developed the functionality I need but only edition mode and I need to use it in view mode.
Currently I have not much experience working with Drupal to develop the module for myself, just try that in the case where no solution now written.
Some help would be eternally grateful ;)
Comments
I use the shadow box module,
I use the shadow box module, and add a link that looks like this:
<a rel="shadowbox" href="http://maps.google.com/maps?&f=q&source=s_q&geocode=&output=embed&q=101%20West%20Hunt%20Street+McKinney+TX+75069">(View Map)</a>Then whenever you click the link, a google map appears.
If you want to embed into your node instead of it being a popup in a shadowbox, just go to google maps, find your location and at the top right there is a link for code to embed the map. Copy that and paste it into your node.
If you want it more dynamic, you could create address, city, state, zip, and country and create a view and have it dynamically place those field values into the URL
i.e.
<a rel="shadowbox" href="http://maps.google.com/maps?&f=q&source=s_q&geocode=&output=embed&q=[field_address]+[field_city]+[field_state]+[field_zip]">(View Map)</a>Link: Shadowbox Module
The rel="shadowbox" attribute in the tag activates the shadowbox by the way.
Hope that helps.
Austin
Thanks acondiff I was
Thanks acondiff
I was following the advicethe link above, using latitude and longitude points to modify the map ... but also in edit mode.
http://emspace.com.au/article/map-view-geo-gmap-and-gmapgeo
I will try what you tell me ... shadowbox is similar to lightbox ... Do you think that lightbox can handle map's macro?
Come back and comment on my solution ... another time, thanks for your help