Hello,

I installed module Gmap and Location to display Google in pages.
Everything works fine but only the link 'See map : Google map' (which is working) is displayed not the Google map itself.

Any idea or clue ?
Thank.

Bruno

Comments

jenna.tollerson’s picture

Are you using Location CCK? I'm not positive that it is exactly the same with Node Locations but it may be.

Go to Structure -> Content Types -> Manage Display (for the type with your Location field). Then you select "Address with Map" or "Map Only" under "Format".

The "Address with Map" option will still show the link, but will add the map.

bcostacurta’s picture

And so my Content type (called event01) using the field Location defined it via its Manage Fields.
And in the Manage Display for event01 I already select 'Address with Map' (also tried the other values here) but again no Google map is displayed. Only the link 'See map : Google map'.

I also tried this with a new Drupal7-7 dedicated only for this test. But no positive result.

Does someone have another clue here ?
Thanks.

jenna.tollerson’s picture

Do you have Google Maps geocoding for your country (or the country you are trying to map) turned on?
yoursite.com/admin/config/content/location/geocoding

bcostacurta’s picture

In fact without Geocoding activation the link to Google map is not displayed.

Anonymous’s picture

Also, in 'admin/build/block' have you arranged the "Location Map" block in the "Content" region?

bcostacurta’s picture

But unfortunately it does'nt work ...

Anonymous’s picture

Oh, sorry. Just realized you're on 7.x, not 6.x. Haven't played with 7.x mapping yet.

bcostacurta’s picture

I gave up.
I remove Drupal 7 and re-install Drupal 6 with module Gmapfield.
Module Gmapfield simply .. works !
It is only available under D6 and will probably not be updated to D7 as mentioned by the author.
But yes it works and displays Google map in the Content with easy configuration.
Without the complicated gimmicks of modules Gmap + Location under D7 never been able to display any Google map in the Content of my page with these.

So goodbye D7 and welcome back D6 !

kaisorn’s picture

thank all.

bcostacurta’s picture

I gave up.
I remove Drupal 7 and re-install Drupal 6 with module Gmapfield.
Module Gmapfield simply .. works !
It is only available under D6 and will probably not be updated to D7 as mentioned by the author.
But yes it works and displays Google map in the Content with easy configuration.
Without the complicated gimmicks of modules Gmap + Location under D7 never been able to display any Google map in the Content of my page with these.

Goodbye D7 and welcome back D6 !

LTech’s picture

Is there any way to display the map using dupal7? I can show it in a block but I want to show it inline with the content.
Thanks

kenyan’s picture

I'd been running around with this issue for a while too with no map showing after trying out all the suggestions around the site for Drupal 7x.
I managed to solve my issue by going to: admin/config/content/formats
and for Full HTML and Filtered text formats enabling the "GMap Macro expander" Filter. My gmap now shows in the nodes.
Hope that helps

LTech’s picture

To show the map block inline with the content I put:

 $block = module_invoke('views', 'block_view', 'getdirections-block_1');
			print render($block['content']); 

in the template node.

lyosef’s picture

I've troubled myself with Gmap long enough and still had to choose another route to get what wanted.