You are here

function gm3_field_field_formatter_info in Google Maps API V3 7

Implements hook_field_formatter_info().

FIXME - We need to add settings to these formatter types to allow the display of the map to be altered.

File

gm3_field/gm3_field.module, line 564

Code

function gm3_field_field_formatter_info() {
  return array(
    'gm3_entity_map' => array(
      'label' => t('Geo field single map.'),
      'description' => t('Displays all the data from a single field on a single map.'),
      'field types' => array(
        'gm3_point',
        'gm3_polygon',
        'gm3_polyline',
        'gm3_combination',
      ),
      'settings' => array(
        'display_convex_hull' => FALSE,
      ),
    ),
    'gm3_field_map' => array(
      'label' => t('Geo field map per field.'),
      'description' => t('Displays all the data from fields also selected to use this display type on a single map.'),
      'field types' => array(
        'gm3_point',
        'gm3_polygon',
        'gm3_polyline',
        'gm3_combination',
      ),
      'settings' => array(
        'display_convex_hull' => FALSE,
      ),
    ),
    'gm3_text' => array(
      'label' => t('Geo field text.'),
      'field types' => array(
        'gm3_point',
        'gm3_polygon',
        'gm3_polyline',
        'gm3_combination',
      ),
    ),
  );
}