You are here

function openlayers_field_field_formatter_info in Openlayers 7.3

Implements hook_field_formatter_info().

File

modules/openlayers_field/openlayers_field.module, line 77
Openlayers field module.

Code

function openlayers_field_field_formatter_info() {
  return array(
    'openlayers_map_formatter' => array(
      'label' => t('Openlayers map'),
      'field types' => array(
        'openlayers_map',
      ),
    ),
    'openlayers_geofile_formatter' => array(
      'label' => t('Openlayers file to map'),
      'field types' => array(
        'file',
      ),
      'settings' => array(
        'map_layer' => '',
      ),
    ),
    'openlayers_addressfield_textfield_formatter' => array(
      'label' => t('Openlayers map (geocoded field)'),
      'field types' => array(
        'addressfield',
        'text',
      ),
      'settings' => array(
        'map_layer' => '',
        'geocoder_handler' => 'google',
        'geocoder_cache' => '',
      ),
    ),
  );
}