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

chasz’s picture

+1

bmagalhaes’s picture

I´s have the same problem. Anybody knows?

Thanks
Bruno de Oliveira Magalhães
www.7links.com.br
www.habitus.com.br

brunorios1’s picture

+1

podarok’s picture

Status: Active » Closed (won't fix)

release unsupported
feel free to open issue against latest 7.x dev

rboedeker’s picture

Issue summary: View changes

For D7:
use hook_views_pre_render(&$view)

function yourmodule_views_pre_render(&$view){
...
 $view->style_plugin->options['macro']= <your gmap_macro string >;
...
}