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 CiviEvent (Moderator: Yashodha Chaku) »
  • can't get event location maps to work
Pages: [1]

Author Topic: can't get event location maps to work  (Read 1356 times)

joachim

  • Guest
can't get event location maps to work
October 07, 2008, 09:35:10 am
I can't get the event maps to work at all.
My event map shows the middle of the Pacific ocean -- probably what Google maps considers to be (0,0).

I've tried entering some different values for Latitude and Longitude in to the Event Location settings (though I've no idea what units to use: tried both actual degrees and decimal values) -- these don't get saved at all: when I go back to the Event Locations settings page the Lat and Long are both zero again.

How does Google maps get hold of the right place to show? Have I missed where I'm supposed to enter data perhaps?


Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: can't get event location maps to work
October 07, 2008, 10:30:28 am
If you have Google mapping configured in Global Settings, then when you enter or update the Event Location, the geocoding fields should get populated for that event / location. I did notice when playing with this on the 2.1 demo just now that the geo-coding does NOT happen if the Country field is suppressed on "Address Editing" (Global Settings >> Address Settings). Once I re-enabled "Country" - things worked as expected:

http://drupal.demo.civicrm.org/civicrm/admin/event?action=update&reset=1&id=1
http://drupal.demo.civicrm.org/civicrm/event/info?reset=1&id=1

Protect your investment in CiviCRM by  becoming a Member!

joachim

  • Guest
Re: can't get event location maps to work
October 10, 2008, 04:07:33 am
I'm on 2.0.4 on Drupal 5.
The Country field is enabled on the Address Editing settings.
Still getting the middle of the Pacific ocean :(

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: can't get event location maps to work
October 10, 2008, 06:52:46 am

1. does mapping work at all for you? can u check with contact mapping?

2. if not, i would first check if geocoding is working (CRM/Utils/Geocode/Google.php,  function format() ). If the address is being geocoded properly, then

3. I'd debug the mapping code (CRM/Contact/Form/Task/Map.php)

If i had to guess i suspect geocoding is not working and hence u get the pacific ocean

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

joachim

  • Guest
Re: can't get event location maps to work
October 23, 2008, 05:09:30 am
The map for a contact's location is showing fine.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • can't get event location maps to work

This forum was archived on 2017-11-26.