I don't have the time to post a patch but the $items array in geolocation_googlemaps_link_field_formatter_view() looks like this for me:

 [geom] => XXXXXXXXXXX
 [geo_type] => point
 [lat] => XXXXXXXXXXX
 [lon] => XXXXXXXXXXX
 [left] =>XXXXXXXXXXX
 [top] => XXXXXXXXXXX
 [right] => XXXXXXXXXXX
 [bottom] =>XXXXXXXXXXX
 [geohash] =>XXXXXXXXXXX 

You're doing this:
$lng = $item['lng']

Should be:
$lng = $item['lon']

CommentFileSizeAuthor
#2 2847896-undefined-index-lng.patch542 bytesswati.nuna

Comments

AaronELBorg created an issue. See original summary.

swati.nuna’s picture

Status: Needs work » Needs review
StatusFileSize
new542 bytes

Hi,

Please check attached patch with your suggestion.

swati.nuna’s picture

priyanka.attarde’s picture

Status: Needs review » Reviewed & tested by the community

Verified patch. It is working correctly.