diff --git a/modules/geolocation_googlemaps/geolocation_googlemaps.module b/modules/geolocation_googlemaps/geolocation_googlemaps.module index 93bf1c0..46a24a4 100644 --- a/modules/geolocation_googlemaps/geolocation_googlemaps.module +++ b/modules/geolocation_googlemaps/geolocation_googlemaps.module @@ -174,6 +174,8 @@ function geolocation_googlemaps_field_formatter_view($entity_type, $entity, $fie $settings = $display['settings']; $element = array(); $lat_key = 'lat'; + // 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'; switch ($display['type']) {