Function Reference: geodir_map_marker_cluster
Summary
This function has not been documented yet.
Source File
geodir_map_marker_cluster() is located in geodir_marker_cluster/geodir_marker_cluster.php [Line: 137]
Source Code
function geodir_map_marker_cluster($arr){ $arr[] = array( 'name' => __( 'Marker Cluster' , GEODIRMARKERCLUSTER_TEXTDOMAIN ), 'type' => 'title', 'desc' => '', 'id' => 'geodir_marker_cluster_settings ' ); $arr[] = array( 'name' => __( 'Enable Marker Cluster', GEODIRMARKERCLUSTER_TEXTDOMAIN), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_marker_cluster_settings' ); $arr[] = array( 'name' => __( 'Show marker cluster on selected maps', GEODIRMARKERCLUSTER_TEXTDOMAIN), 'desc' => '', 'tip' => '', 'id' => 'geodir_marker_cluster_on_maps', 'css' => 'min-width:300px;', 'type' => 'multiselect', 'placeholder_text' => __( 'Select maps to cluster', GEODIRMARKERCLUSTER_TEXTDOMAIN ), 'class' => 'chosen_select', 'options' => array_unique( geodir_map_marker_cluster_choose_maps()) ); $arr[] = array( 'type' => 'sectionend', 'id' => 'geodir_marker_cluster_settings'); $arr[] = array( 'name' => __( 'Marker Cluster Settings', GEODIRMARKERCLUSTER_TEXTDOMAIN), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_marker_cluster_settings_options' ); $arr[] = array( 'name' => __( 'Grid Size', GEODIRECTORY_TEXTDOMAIN ), 'desc' => __( 'The grid size of a cluster in pixel. Each cluster will be a square. If you want the algorithm to run faster, you can set this value larger. The default value is 60', GEODIRECTORY_TEXTDOMAIN ), 'id' => 'geodir_marker_cluster_size', 'css' => 'min-width:300px;', 'std' => '60', 'type' => 'select', 'class' => 'chosen_select', 'options' => array_unique( array( '60' => __( 'Default (60)', GEODIRECTORY_TEXTDOMAIN ), '10' => __( '10', GEODIRECTORY_TEXTDOMAIN ), '20' => __( '20', GEODIRECTORY_TEXTDOMAIN ), '30' => __( '30', GEODIRECTORY_TEXTDOMAIN ), '40' => __( '40', GEODIRECTORY_TEXTDOMAIN ), '50' => __( '50', GEODIRECTORY_TEXTDOMAIN ), '70' => __( '70', GEODIRECTORY_TEXTDOMAIN ), '80' => __( '80', GEODIRECTORY_TEXTDOMAIN ), '90' => __( '90', GEODIRECTORY_TEXTDOMAIN ), '100' => __( '100', GEODIRECTORY_TEXTDOMAIN ), )) ); $arr[] = array( 'name' => __( 'Max Zoom', GEODIRECTORY_TEXTDOMAIN ), 'desc' => __( 'The max zoom level monitored by a marker cluster. When maxZoom is reached or exceeded all markers will be shown without cluster.', GEODIRECTORY_TEXTDOMAIN ), 'id' => 'geodir_marker_cluster_zoom', 'css' => 'min-width:300px;', 'std' => '15', 'type' => 'select', 'class' => 'chosen_select', 'options' => array_unique( array( '15' => __( 'Default (15)', GEODIRECTORY_TEXTDOMAIN ), '1' => __( '1', GEODIRECTORY_TEXTDOMAIN ), '2' => __( '2', GEODIRECTORY_TEXTDOMAIN ), '3' => __( '3', GEODIRECTORY_TEXTDOMAIN ), '4' => __( '4', GEODIRECTORY_TEXTDOMAIN ), '5' => __( '5', GEODIRECTORY_TEXTDOMAIN ), '6' => __( '6', GEODIRECTORY_TEXTDOMAIN ), '7' => __( '7', GEODIRECTORY_TEXTDOMAIN ), '8' => __( '8', GEODIRECTORY_TEXTDOMAIN ), '9' => __( '9', GEODIRECTORY_TEXTDOMAIN ), '10' => __( '10', GEODIRECTORY_TEXTDOMAIN ), '11' => __( '11', GEODIRECTORY_TEXTDOMAIN ), '12' => __( '12', GEODIRECTORY_TEXTDOMAIN ), '13' => __( '13', GEODIRECTORY_TEXTDOMAIN ), '14' => __( '14', GEODIRECTORY_TEXTDOMAIN ), '16' => __( '16', GEODIRECTORY_TEXTDOMAIN ), '17' => __( '17', GEODIRECTORY_TEXTDOMAIN ), '18' => __( '18', GEODIRECTORY_TEXTDOMAIN ), '19' => __( '19', GEODIRECTORY_TEXTDOMAIN ), )) ); $arr[] = array( 'type' => 'sectionend', 'id' => 'geodir_marker_cluster_settings_options'); return $arr; }