I have been trying to get node locations to display on a map in views. I have a CCK location field, I'm using a relation to add the cck field to location. Pager is disabled, gmap style map, not sure if I should use the location.module or the cck field lad/long. When I preview or go to the actual path of the view I am not seeing any map. I feel that the worst that should happen is to not have any markers. I have a default macro that I generated and my gmaps API key is in the gmap module and location module. Anyone have any ideas?

Comments

kidmoe’s picture

Or at least point me in the direction of a decent tutorial. I haven't been able to find anything useful, I would love to see a screencast or at least a step by step guide where they don't gloss over a few things.

dnask8’s picture

dnask8’s picture

Is that what your talking about?

mattyoung’s picture

I found that if I add Location as CCK field, gmap view show nothing. I have to use the Locative Information setting in the node itself. So don't add Location as a CCK field, go edit your node content type and enable Locative Information setup there. Then your should see gmap view. Make sure you enable lat/lon calculation in the Location module settings. You can be sure of this when you enter a address and lat/lon field is filled with numbers afterward.

kidmoe’s picture

Thank you! I thought I tried something like that before but I guess not. Great to finally see a map.

emi_bcn’s picture

Thank you!!

bartezz’s picture

Location as CCK filed is working I found after searching for ages.

Looky here;
http://drupal.org/node/386848#comment-1368296
ALSO THIS
http://drupal.org/node/386848#comment-1590284

Cheers

________________
Live fast die young

karolus’s picture

It has been my experience that sometimes wonky things can happen to location data when updates are made. At times, my map views would disappear, as well, rebuilding a gmap view display didn't help the situation in the least. The only way around it was to delete the nodes with location data, and create them anew.