Well, the title its self-explanatory, but for reference, this is part of my attempt to make Google Maps geolocation module work with Geofield.

For reference the widget it's being discusses in issue #1129512: Make Google maps geolocation widget compatible with Geofield.

Comments

jherencia’s picture

StatusFileSize
new3.06 KB
new3.47 KB
jherencia’s picture

For the record, Google Maps geolocation formatter is broken in 7.x-1.x-dev version. I've reopened the issue #1558580: HTTPS and SSL URL paths without the protocol which broke it and I've added the fix.

derjochenmeyer’s picture

Status: Needs review » Needs work
mgifford’s picture

Do you mean this comment:

+  // To make this widget compatible with geofiled we need to rename the keys for
+  // longitude. Geofield uses "lon" while Geolocation Field uses "lng".
derjochenmeyer’s picture

yep maybe just:

+  // To make this widget compatible with geofiled we need to rename the keys for
+  // longitude. Geofield uses "lon" while Geolocation Field uses "lng".
+  $lng_key = ($field['type'] == 'geofield') ? 'lon' : 'lng';
jherencia’s picture

Status: Needs work » Needs review
StatusFileSize
new733 bytes
new3.21 KB
new3.63 KB

Added the comment and rerolled to latest 7.x-1.x.

derjochenmeyer’s picture

Status: Needs review » Fixed

Thanks. Committed. Should be in 7.x-1.x-dev in a few hours.
Strange that the git am commits don't appear in http://drupal.org/node/241478/commits

jherencia’s picture

Great :).

About the commits, they appear, but they have the date I created the patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.