CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Using GMap and Location
Pages: [1]

Author Topic: Using GMap and Location  (Read 1143 times)

kalen

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.5.9
  • PHP version: 5.3.5
Using GMap and Location
June 04, 2011, 12:39:47 pm
I'm new to Drupal, CiviCRM, php, etc., so I apologize preemptively for my cluelessness.

I'm trying to populate a google map with data from CiviCRM contacts so that I can embed the map in a Drupal page, viewable to non-users, and it'll update when the CiviCRM contact data is changed. I've heard tell that the way to do that involves the GMap and Location Drupal modules, so I installed them and have been messing around, but I'm not figuring out how to achieve my goal.

For instance, do I have to link the CiviCRM contacts with Drupal user profiles to get them to work with Location? That wouldn't really make sense with the data I'm using, but it would be possible. If that's the case, how do you get GMap to make maps from just some users?

Are there other ways to make the map I want?

Again, I apologize for asking these questions when I've got a long way to go in understanding CiviCRM and Drupal, but I figured if anyone can point me in the right direction, it'll help. What I've read has indicated I'm going to need to write some code to get where I want, but I feel reasonably confident in my ability to learn how to do that (I can program in Java and C, so scripting languages can't be too hard... right?).

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Using GMap and Location
June 04, 2011, 09:25:56 pm

Depends on how complex you want the map etc.

CiviCRM Profiles allow a simple mapping feature. Enable mapping in the Advanced Settings for the profile and you should see map links

in a url similar to:

http://drupal.demo.civicrm.org/civicrm/profile?reset=1&gid=1&force=1&map=1

(suspect the above is not working due to missing google map keys?)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

gg66

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Using GMap and Location
June 14, 2011, 06:12:52 am
If you're trying to get to grips with the drupal gmap modules I recommend you read through this tutorial, in particular check out the two videos at the top. http://groups.drupal.org/node/19614

You can display a drupal gmap of users quite easily and I expect if you sync CiviCRM and Drupal users together that would allow you to display more information. I haven't tried this & I'm not sure what your objectives are but I hope this is helpful


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Using GMap and Location

This forum was archived on 2017-11-26.