$map) {
$output .= '
' . $map->title . '
' . openlayers_render_map($map) . '
';
}
/*
// Create collapsed fieldset
//$render_fieldset = openlayers_render_map();
$element = array(
'#value' => $render_fieldset['themed'],
'#title' => t('Fieldset Example'),
'#collapsed' => TRUE,
'#collapsible' => TRUE,
);
$fieldset = theme_fieldset($element);
*/
return $output;
}
/**
* Callback for OpenLayers Test JS Page
*/
function openlayers_test_js() {
drupal_add_js(drupal_get_path('module', 'openlayers_test') . '/js/qunit/qunit.js');
drupal_add_css(drupal_get_path('module', 'openlayers_test') . '/js/qunit/qunit.css');
drupal_add_js(drupal_get_path('module', 'openlayers_test') . '/js/openlayers_test.js');
$output = '';
// Display QUnit stuff
$output .= '
';
// Render only specific maps
$maps = array('default', 'behaviors_test');
foreach ($maps as $name => $map) {
$output .= '
' . openlayers_render_map($map) . '
';
}
return $output;
}