Hi,
I tried for days to get the location module working.
I did all the admin settings and the nodetype settings. The admin settings are:
admin/settings/location
Use a Google Map to set latitude and longitude checked
admin/settings/location/maplinking
Google maps checked
admin/settings/location/geocoding
Set to Google Maps API
admin/settings/gmap_location
Enable the Google Map API geocoding: enabled
Gmap module with the gmap macro is working. And location is working on the profile pages.
But I can't get a node showing with a map!
I see with devel.module these records from location filled:
locations
Array
(
[0] => Array
(
[eid] => 8
[lid] => 3
[type] => node
[name] => House in Aquilas
[street] =>
[additional] =>
[city] => Aguilas
[province] =>
[postal_code] =>
[country] => es
[latitude] => 37.403804
[longitude] => -1.581161
[source] => 3
[is_primary] => 0
[lat] => 37.403804
[lon] => -1.581161
[fax] =>
[phone] =>
)
)
location
Array
(
[eid] => 8
[lid] => 3
[type] => node
[name] => House in Aquilas
[street] =>
[additional] =>
[city] => Aguilas
[province] =>
[postal_code] =>
[country] => es
[latitude] => 37.403804
[longitude] => -1.581161
[source] => 3
[is_primary] => 0
[lat] => 37.403804
[lon] => -1.581161
[fax] =>
[phone] =>
)
I attach the look-and-feel I see.
Instead of the map I see:
Location(s)
I think this is a bug, is it?
If so, does anybody have a patch or solution. Maybe another setting I forgot?
Thanks in advance!
Greetings,
Martijn
Comments
Comment #1
summit commentedHi,
I am able to show a link to a map now. It seems not all countries are supported by location...
How can I get the countries be supported? Google maps support the whole world right?
See attached picture. I can click on the link to go to google maps and see my map.
But what I really want..is to see the google map picture inside the node.
Is this possible please?
Above question I will set to support request. I think the link working is by design, right?
Greetings,
Martijn
Comment #2
summit commentedHi,
After further investigation I can see that the link to the map is in: location.inc
Quote from another post:
The total code is:
Could somebody please give me an alternative function in which I see the map itself and NOT the link to the map?
Thanks in advance!
Greetings,
Martijn
Comment #3
summit commentedAltered title after more investigation.
greetings,
Martijn
Comment #4
summit commentedHi,
I got it working, thanks to: http://drupal.org/node/181340
greetings,
Martijn
Comment #5
summit commentedThis is my solution:
Is this a correct solution to only get the nodes which have location information?
I think so, please respond with feedback.
thanks in advance,
greetings,
Martijn
Comment #6
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
ellanylea commentedMuch appreciated, works for me!
Minor addition: to effectively set the map type, I had to use
'maptype' => 'Hybrid'(instead of'type' => 'Hybrid')This is with Drupal 5.7 and all latest modules of gmap, location, cck, views, etc. as of Mar. 14 2008.