I have a couple of questions regarding the use of gmap with relationships, specifically organic groups. I have, what I would imagine, is a fairly common setup: allow users to create organic groups and associate a single location with each one, and let users create posts in these groups.

1. I can create a map showing all groups. But can I create a map of all posts, utilising the "group node(post)" relationship to pull in the location data from the parent group? I notice in the gmap view style settings there is an option to use either as the data source either the location.module or the "Fields named "latitude" and "longitude" @@@TODO". Does this mean in the future I will be able to add latitude/longitude fields in the view and simply add the group node(post)" relationship to each one to get this working?

2. If this is possible, it raises another question. Obviously all the posts in a group will have the same location, so how do you display multiple markers at the exact same location? I've tried using the clusterer2.js but this just seems to bring up an info bubble with mini-markers inside and no other information. I guess these are meant to display linked titles to the post so that is probably a bug. The post #333900 mentions an automatic slight offset/displacement between markers with the exact same location. Is this possible, or is the correct solution getting clusterer to work?

This module has made a world of difference to my site, so many thanks for all your hard work.

Comments

McCool’s picture

Ditto the thanks to the module developers, the module is fantastic, and I am enjoying it imensly.

However, I too am trying to use a GMap view with relationships, and not having much luck. I can create a node view with the style set to GMap, and the map looks good and displays the nodes at their location. I then add a relationship via a node reference field, and use this relationship to show a subset of results, and the GMap view does not display.

I know the view is working, as when I switch it to a table or list view, the view displays the subset of nodes as expected.

So is there a problem with the GMap views relationship implementation?

And thanks again, the module is great.

Using Drupal 6.6, GMap 6.x-1.0-rc2

yesct’s picture

this might be related: http://drupal.org/node/332314#comment-1123003

in style "list" my view works, but in "gmap" I get nothing ...

drewish’s picture

Status: Active » Closed (duplicate)