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']
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2847896-undefined-index-lng.patch | 542 bytes | swati.nuna |
Comments
Comment #2
swati.nuna commentedHi,
Please check attached patch with your suggestion.
Comment #3
swati.nuna commentedComment #4
priyanka.attarde commentedVerified patch. It is working correctly.