Closed (duplicate)
Project:
GMap Module
Version:
6.x-1.0-rc2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2008 at 05:40 UTC
Updated:
15 Dec 2008 at 04:41 UTC
I have been slowing getting closer to getting gmap and location, cck and views to work together... now I'm stuck at:
http://drupal.org/node/332314#comment-1123003
and I thought it might be a new problem....
I am not using locations associated with a node, I instead have a cck field location in a node... and it looks like the view cannot access that location info... It shows up ok in the "list", but when I set the view style to "GMap", it shows nothing...
Here are some screen shots which show the direct Location: blank fields on the node are empty, event though the cck field has location info ...
| Comment | File | Size | Author |
|---|---|---|---|
| locationempty-zoomin.jpg | 121.19 KB | yesct | |
| locationempty.jpg | 102.5 KB | yesct |
Comments
Comment #1
yesct commentedMaybe the datasource part needs an option for "cck location field"?
as in:
changing it to something like:
from
gmap_plugin_style_gmap.inc ?
but where does it fill in the values in the query field?
Comment #2
yesct commentedI've been looking all around in the gmap and views code... and the best I have is:
which just has some changes here:
and here:
and a recommendation to add some feedback for empty maps here:
The trouble is, I dont see how to tell it to get the lat and long from a location cck field (which is an lid, to a location row in the location table, using the normal location structure)...
The "field" that contains the lid shows up in the views "field" dialog, and displays great in a "list" style, but the gmap style in views doesn't know how to find/use the location fields in the location cck field ... and since each site that uses location as a cck field, probably will call the field in the table a different name, I'm not sure how to code it anyway... well, kind of, it is already coded, I mean, it already can be selected in the "field" for the view... gmap just doesnt get the location lat and long info from it.
I'm talking in circles... more later. Thanks for any help.
Comment #3
drewish commentedI've posted a patch to add lat lon field support over on #338587: Move views integration code to gmap_location module?