Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am working happily with dev-version = "7.x-1.x-dev" from 2012-05-14
Whenever I try to upgrade to "7.x-1.0-beta1" or 2.2, I get the following error, also on a new view:
Notice: Undefined index: value in gmap_plugin_style_gmap->render() (line 209 gmap_plugin_style_gmap.inc).
Comments
Comment #1
yoannl CreditAttribution: yoannl commentedHi,
I just resolved this problem by replacing in gmap_plugin_style_gmap.inc (line 209 & 210)
" $lat = (float)$custom_field_lat['value'];
$lon = (float)$custom_field_lon['value'];"
by
" $lat = (float)$custom_field_lat['latitude'];
$lon = (float)$custom_field_lon['longitude'];"
It works now fine for me.
Now I can use CCK location fields in views module to get gmap views
Regards,
Yoann
Comment #2
johnvSome refactoring has been done. Check out latst version.