maps module line 868:

$m = module_invoke_all('gmap', 'parse_macro', $m);

$m becomes an empty array, obscuring the result (allways the admin/siteconfig/gmap map settings)

temporary fix;
// module_invoke_all returns an empty array, and the settings are obscured...
$tm = module_invoke_all('gmap', 'parse_macro', $m);
if (count($map > 0)) {
$m = $tm;
}

Comments

2xe’s picture

sorry... a typo:

if (count($map) > 0) //... not count($map > 0)

for me theme('gmap', $array) doesn't work either, it only displays the default map.. I have to manually compile a macro string to get it to work (and it only works when I apply the patch above). I'm not using any other modules...

2xe’s picture

Status: Active » Closed (fixed)

this one is apparently solved already ;)...