Adding Google Map to Contact Info Page in Drupal
I'm trying to display a Google Map inside a drupal page. The map will only have the business location marker on it, with no need 开发者_开发百科for a user to submitted their own markers.
So far I've loaded the Gmap, Location, and CCK modules. I've attempted to enable a location field for Page content types, which allows me to input an address, but this doesn't display the actual map.
I'm sure I'm missing something simple here. Any help?
Edit:
The solution I went with finally was adding the JS files to the drupal header using the php command drupal_set_html_head() which was found through this link provided by Nikit. I could get nothing else to work properly.
Only for Contact page? May be simpler to embed manually? http://code.google.com/intl/en/apis/maps/
I think you could create a block with the gmap blocks module and then set this block to display only on the contact page.
Here is a simple way to add a map to any content manually. This tutorial shows you how to get the map "Link", which you then copy into you content. http://maps.google.com/help/maps/getmaps/plot-one.html
Make sure that you set the "Text Format" to Full HTML - the allows the iframe tag to be used.
精彩评论