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

yoannl’s picture

Hi,

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

johnv’s picture

Status: Active » Fixed

Some refactoring has been done. Check out latst version.

Status: Fixed » Closed (fixed)

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