I'm just getting the default Google map, and an error message:
Warning: Invalid argument supplied for foreach() in template_preprocess_gmap_views_view_gmapextended() (line 50 of /mnt/www/html/ppdev/docroot/sites/all/modules/gmap/gmap.views.inc)
I'm just getting the default Google map, and an error message:
Warning: Invalid argument supplied for foreach() in template_preprocess_gmap_views_view_gmapextended() (line 50 of /mnt/www/html/ppdev/docroot/sites/all/modules/gmap/gmap.views.inc)
Comments
Comment #1
bhoult commentedSame issue with latest drupal / gmap / location as of Jan 27 2012.
Comment #2
alexio2170 commentedsame issue, changing to html list format I've no problems
Comment #3
webbykat commentedSame problem here - running Drupal 7, latest gmap module and latest location module.
Comment #4
bmunslow commentedHi, to solve this problem you have to set up your views to use "fields" instead of "Content".
You then have to add all fields you want to display, together with the latitude and longitude.
Finally, edit the parametrs of the Gmaps display in your view and map the latitude and longitude fields to the Marker latitutde and marker longitude, as well as the title and body to the bubble.
HTH