You are here

function getlocations_markercluster_form in Get Locations 7

Same name and namespace in other branches
  1. 7.2 getlocations.module \getlocations_markercluster_form()
3 calls to getlocations_markercluster_form()
getlocations_plugin_style_map::options_form in views/getlocations_plugin_style_map.inc
Provide a form to edit options for this plugin.
getlocations_settings_form in ./getlocations.admin.inc
Function to display the getlocations admin settings form
_getlocations_search_settings_form in modules/getlocations_search/getlocations_search.admin.inc

File

./getlocations.module, line 5140
getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_markercluster_form($defaults) {
  if (file_exists(GETLOCATIONS_PATH . '/getlocations.markercluster_override.inc')) {
    module_load_include('inc', 'getlocations', 'getlocations.markercluster_override');
  }
  else {
    module_load_include('inc', 'getlocations', 'getlocations.markercluster');
  }
  $form = array();
  $form['useclustermanager'] = getlocations_element_map_checkbox(t('Use Cluster manager'), $defaults['useclustermanager'], t('Use Cluster manager. Switching this off will use no manager.'));
  $form['markerclusterer_style'] = getlocations_element_markerclusterer_style($defaults['markerclusterer_style']);
  $form['markerclusterer_imgpath'] = getlocations_element_map_tf(t('Markerclusterer image path'), $defaults['markerclusterer_imgpath'], '', 40, 255);
  $form['markerclusterer_title'] = getlocations_element_map_tf(t('Markerclusterer tooltip'), $defaults['markerclusterer_title'], t('The text of a Markerclusterer tooltip'), 30, 64, TRUE);
  $form['markerclusterer_zoom'] = getlocations_element_markerclusterer_zoom($defaults['markerclusterer_zoom']);
  $form['markerclusterer_size'] = getlocations_element_markerclusterer_size($defaults['markerclusterer_size']);
  $form['markerclusterer_minsize'] = getlocations_element_markerclusterer_minsize($defaults['markerclusterer_minsize']);
  return $form;
}