CiviCRM group - gmap display

Events happening in the community are now at Drupal community events on www.drupal.org.
adixon's picture

I have a client who wanted to display some google maps using data stored in CiviCRM. I looked at the various projects that mash up CiviCRM and Google maps and the GMap module looked like the right place to start, but the location/civinode/views mix that looked promising didn't pan out. I also noticed the discussion around 'mapthing' below, but that seemed to have died.

So, i've just written a little gmap_civigroup module that allows you to create maps as a new node type, and it displays all the members of a given CiviCRM group. It does this by actually importing the CiviCRM location data into it's own database table for speed and so it can be modified if required, and it has a narrative field for each (member, map) as well. And there are basic tools for geocoding.

I could have made each contact it's own node, which would have made some things easier (like the text data for each group member) but I wanted it to be pretty light for now, I might evolve it in that direction if there are more requirements for the individual contact record displays. I'm also thinking I could add a link back to the map from each contact record that would show that contact in context (i.e., with it at the centre of the map, and a little more zoom).

A nice side effect here is that since i'm using og_civicrm, I can also put up maps of my organic group membership, which is kind of fun. Not quite apropos, I discovered that webgeer lives in my town (but doesn't answer emails...).

You can see my first (non-public, but not secret) draft here:

http://directory.telecentre.org/

Comments welcome of course.

Comments

I was wondering if you are

majortom's picture

I was wondering if you are still working on this? If so, how is it going? Have you given any more thought to making each contact a node?

/carmi

The code i just published

adixon's picture

The code i just published hasn't been updated, though it will be soon because the client wants some features. I don't intend to make each contact a node - that's already a different project (civinode - http://drupal.org/node/56661). My goal here is something lighter and to a specific purpose.

project published

adixon's picture

The code for this project is now available here: http://drupal.org/project/gmap_civigroup

Location and Mapping

Group organizers

Group categories

Wiki type

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: