我已經設法在匈牙利社區的幫助下完成了這一切。 (我會很樂意到原來的螺紋連接,但似乎它刪除了。)
基本上「絕招」是使用鉤子一點點自定義模塊:
function MODULENAME_preprocess_gmap_view_gmap(&$vars) {
if ($vars['view']->name == "my_gmap_view") {
$map_object = $vars['map_object'];
$map_object['id'] = 'my_view_id';
foreach ($vars['view']->result as $key => $row) {
$shapes[$key]['type'] = 'circle';
// we have a profile field for the radius, but it could be anything...
$shapes[$key]['radius'] = $row->profile_values_profile_radius_value;
// center the circles on the coord
$shapes[$key]['center'][0] = $row->location_latitude;
$shapes[$key]['center'][1]= $row->location_longitude;
}
// we don't need any markers, just the circles
$map_object['markers'] = NULL;
$map_object['shapes'] = $shapes;
$vars['map'] = theme('gmap', array('#settings' => $map_object));
}
}