Posted by johnv on January 12, 2013 at 1:05pm
3 followers
Jump to:
| Project: | GMap Module |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
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
#2
Some refactoring has been done. Check out latst version.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.