Posted by sderrick on November 8, 2009 at 1:44am
Jump to:
| Project: | GMap Module |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I have the following installed
Views 6.x-2.6
Location 6.x-3.1-rc1
GMap 6.x-1.x-dev
I have about 500 nodes with a CCK location field. The edit view of the node shows a GMap with a flag at their respective L/L.
I made a view, filtering on the type of node and published, with the display field as the Title/link. I made a page from the view.
When I view the page with the style set to list, I get 500 titles listed. When the style is set to gmap, I get a blank page.
the generated html for the content div
looks empty to me???
Comments
#1
#2
I think I may know why the map is not being generated. I installed the location and gmap modules but inittially I didn't enable gmap, just location so I could build a page using cck for data input. This page had a location cck field in it.
So I now have over 600 entries.
I got the google api key and enabled gmap. But when I navigate to admin/gmap location to set the marker type, it says my page with the location field in it is not location enabled? If I edit this content type, since I enabled gmap it now has a new entry called, Locative Information, which wasn''t there before. Under "Number of locations" it says zero(0), even though there is a cck location field in the page. If I set the number to 1, it adds a new location field in addition to the one I already have???
How can I get the Gmap module to recognize the existing location field?
Re-entering all that data would be a major drag! There must be some entry in the data base I can make so it knows about the cck location field and use that data for the map!
Scott
#3
I eneabled the number of locations in the "locative" to 1(one).
Still no map in a View of style GMap.
WTF????
AM I the only one with this issue? Or does nobody really use GMAP, Location CCK and Views?
Scott
#4
Your problem is very specific, maybe that is the reason noone has encountered this before
did you enable
X Use a Google Map to set latitude and longitude
in admin/settings/location ?
That is all I can think of since I am new to gmap myself
#5
Try this (for this example the cck location field is called location (field_location):
* Add the relationship - Content: location (field_location)
* Add the fields - Location: Latitude & Location: Longitude making sure to use the relationship you defined in the previous step
* In the style options for the GMap style, for the "Data Source" option select "Choose latitude and longitude fields". Then for the "Latitude field" and "Longitude field" options select the appropriate fields that you added in the previous step.
Then the map should be able to get the lat/lon coords from your data so it can map them.
#6
I have the feeling that the new dev and the new views modules should fix this issue
marking as fixed and if its not it needs more info
#7
Automatically closed -- issue fixed for 2 weeks with no activity.
#8
I'm having the same problem, using the latest dev release of GMAP and Views. Ideas?
#9
Found the answer over here: #633668: GMap, CCK, Location, View-- No map displayed
#10