Referring to http://drupal.org/node/74920, with the latest version, we can fill the $view->gmap_macro variable in the macro using the "Argument Handling Code" in the "Arguments" section of the view-editing form (admin/views/edit/#)
$view->gmap_macro = "[gmap |center=47, 8 |zoom=11 |width=300px |height=200px |control=Small |type=Map]";
Since we can views argument handling in such a way, so the center, zoom level are fixed. I would like to have more dynamic map (i.e different State (term) has different center and zoom level) and only shows nodes belongs to it State.
Is it possible or any suggestion so we could retrieve the macro-string from a specific field of a term and make gmap-views creation more dynamic for specific views? We can add the latitude/longitude, zoom level in the term - Does this module http://drupal.org/project/taxonomy_fields help?
And then insert it in the above $view->gmap_macro ?
Comments
Comment #1
chasz commented+1
Comment #2
bmagalhaes commentedI´s have the same problem. Anybody knows?
Thanks
Bruno de Oliveira Magalhães
www.7links.com.br
www.habitus.com.br
Comment #3
brunorios1 commented+1
Comment #4
podarokrelease unsupported
feel free to open issue against latest 7.x dev
Comment #5
rboedeker commentedFor D7:
use hook_views_pre_render(&$view)