views:

274

answers:

3

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.

+1  A: 

Only for Contact page? May be simpler to embed manually? http://code.google.com/intl/en/apis/maps/

Nikit
Yes it only appears on one page, and doesn't need to dynamically update. But I can't figure out how to embed a map. The javascript version required a <body onload="initialize()">And Drupal won't let me do that. I would rather not use the flash solution.
clang1234
Look at this: http://thewichitacomputerguy.com/blog/embed-google-maps-drupal-node-without-module-using-php or use iframes: http://blogoscoped.com/files/embed-google-maps.html
Nikit
A: 

I think you could create a block with the gmap blocks module and then set this block to display only on the contact page.

Jeremy French
I would like to be able to place the map in my page's content and not be restricted by drupal's black placements. Also, it seems that gmap blocks is in need of an update. Even after searching through the dev forms and applying the suggested patches, the module still couldn't produce a map.
clang1234
A: 
  1. That really sucks that no one bothered to anwer you. I found your post when looking for an answer to pretty much the same question. Would have been nice to have an answer here!!
Leslie Yosef
Read my edit. That solution still is working for me
clang1234