I'm frustrated and at the point of banging my head against the wall. Any guidance would be most appreciated.

I want to use the Views, CCK, Location and GMap modules to have my "performance" content types appear as markers on a GMap. Essentially, I want concerts to appear as markers on a map.

I tried to follow this tutorial — www.thomasturnbull.com/training/gmap.doc — but it's for Drupal 5, and I am having problems because, apparently, the Views admin pages are considerably different between versions 5 & 6.

Anyway, I think I'm OK with Steps 1-8 with this tutorial, but the instructions for Views loses me. This is my first time using views, so I need a very basic explanation of how to configure Steps 9 and 10 in Drupal 6.

This is one of those where I'm just really feeling stupid. Anyone who helps surely will get an incredible amount of good karma coming their way.

Comments

cayenne’s picture

I just installed it.

The gmap module comes with two maps built in. One for users and one for nodes. In d5 these were controlled by views. In d6, they may be, (not sure) but the gmap module comes with enough configuration filters to allow the locative information to be turned into a map. I have not figured out how to create a second map, nor how to use a CCK field, but at least I have plotted one node on one pretty map.

If you figure this out while I sleep, please post!

Edited: Okay, The comments below, as well as the discussion you were in elsewhere, point out that Views (using a gmap view) are the way to go. Not a surprise. Thanks Drupal community!

:)

baronmunchowsen’s picture

I haven't checkout out the tutorial, but accomplished this recently. Hopefully this will help you out.

Okay, so this assumes that you have GMap and Location turned on and set up to your liking and that you've created some concert nodes with locations all set up (markers appearing on maps for the nodes on their edit pages), and that all you need to do now is to create a view which displays those locations (as markers).

/////

1. Go to /admin/build/views and add a new view setting 'view type' as 'node' (should be default)

2. Set up your Default view as follows:

BASIC SETTINGS
- style: GMap
-- macro: [gmap]
-- data source: Location.module
-- Marker Handling: Use single marker type
- row stlye: fields

FIELDS
- choose node title (you can add more later)

FILTERS
- Node Type: Is one of Concert (or whatever your node type is called)
- Node Published: Yes

3) Save (I always like to save lots)

4) Now you need to add a page display to see the view. On the left, under 'Defaults' make sure the drop-down is selected to 'Page', click 'add display'.

PAGE SETTINGS
- Path: add the path you want to see your map at

5) Save

/////

Now go checkout the page at the path you specified and you should see your map.

If this is too brief, or doesn't work - I'll try and post back in more detail.

Mrzeigler’s picture

Just saw this as I'm about to head out the door for my day job.

Thanks for the info .... Will try it when I get home tonight and let you know how it goes.

Mrzeigler’s picture

I'm still having trouble. I suspect I skipped a step early on, since I'm not sure what you mean by "markers appearing on maps for the nodes on their edit pages" — I don't know how to get the individual nodes to appear as a marker on a map that's revealed on the edit page.

Just in case that's not the problem, here's how I've configured the view so far:

BASIC SETTINGS
Style: GMap
Row style: Fields
Use Ajax: No
User pager: No
Items to display: Unlimited
Distinct: Yes
Access: Unrestricted
Exposed form in block: No
Header: None
Footer: None
Empty text: None
Theme: Information

Page settings
Path: Node/25
Menu: No menu

Relationships: None defined
Arguments: None defined
Fields:

  • Content: date of concert
  • Content: other performers

Sort criteria

  • Content: date of concert
  • Content: other performers
  • Location: Name
  • Location: City

Filters

  • Node: type = Concert
  • Node: published — Yes

When I click on node/25, I see a map that's determined by a GMap macro, but there are no markers.

I have five "concert" node types that are published.

bagherozzo21’s picture

Hi all,
I have the same issue, the map is displayed but no marks at all.!!!

;-)

Drupal 6 + gmap + location + view

Nut-1’s picture

I had a similar issue and solved it by following http://drupal.org/node/382778

izmeez’s picture

subscribing

baronmunchowsen’s picture

Hi there. Often I find it easier to check out a video so here's a video of some GMap and Location basics:

http://blip.tv/file/1757174

You can stop watching after 11 minutes as the coding stuff doesn't really apply here. It doesn't go into views, but if you follow these steps, and then the steps posted previously (above: http://drupal.org/node/371335#comment-1246473) you'll be onto a winner.

Basically, you need to set your nodes up to work with GMap and Location, then the views will follow.

Let me know if you're still running into problems.

//// EDIT

Here's a video showing the views stuff as well:

http://blip.tv/file/1765174/

Mrzeigler’s picture

The blip.tv videos were a big help.

Got my map up and running. Thanks, guys!

bagherozzo21’s picture

Hi guys,
I have got it working after unpload the dev version of gmap!

Cheers!