I am trying to build a directory of churches. I have created a CCK node called church which is working fine - http://www.saturatecolorado.com/node/3282

Even my views list is working fine using the table view - http://www.saturatecolorado.com/churches

However, when I select the GMAP view - I get a blank map with no nodes on it... http://www.saturatecolorado.com/churchmap

I can select the RSS view and then use a GoogleMap to show the nodes - and possibly I should just go with this fix - http://www.saturatecolorado.com/node/3281

Below is the exported view code for the GMAP view.

$view = new stdClass();
$view->name = 'churchmap';
$view->description = '';
$view->access = array (
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Church Map';
$view->page_header = '';
$view->page_header_format = '3';
$view->page_footer = '';
$view->page_footer_format = '3';
$view->page_empty = '';
$view->page_empty_format = '3';
$view->page_type = 'gmap';
$view->url = 'churchmap';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->sort = array (
);
$view->argument = array (
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => '',
'handler' => 'views_handler_field_nodelink',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'content-church_0',
),
),
);
$view->exposed_filter = array (
);
$view->requires = array(node);
$views[$view->name] = $view;

Comments

Zack Rosen’s picture

Did you resolve this issue? When I go to the /churchmap page I see a working map...

stephencameron’s picture

I note that his map although it uses a feed - it seems to be using a mapRSS() function for picking up the feed - which seems to work (slowly). this is not the function declared in Gmap - are you using something else?

webgeer’s picture

I believe mapRSS is the function that exists in the googlemap.module. The function in gmap.module is very similar in operation.

Therefore this exact thing can be achieved using only the gmap.module. (Unfortunately this isn't documented very well.)

It should be noted that http://www.saturatecolorado.com/map/node also works. (Currently it uses clusterer, which probably ruins the effect they are going for...)

bdragon’s picture

Status: Active » Closed (fixed)