You are here

function views_plugin_style_geojson::option_definition in Views GeoJSON 6

Same name and namespace in other branches
  1. 7 views/views_plugin_style_geojson.inc \views_plugin_style_geojson::option_definition()

File

views/views_plugin_style_geojson.inc, line 17
Views style plugin to render nodes in the GeoJSON format.

Class

views_plugin_style_geojson
Implementation of views_plugin_style

Code

function option_definition() {
  $options = parent::option_definition();
  $options['data_source'] = array(
    'contains' => array(
      'value' => array(
        'default' => 'asc',
      ),
      'latitude' => array(
        'default' => 0,
      ),
      'longitude' => array(
        'default' => 0,
      ),
      'geofield' => array(
        'default' => 0,
      ),
      'wkt' => array(
        'default' => 0,
      ),
      'name_field' => array(
        'default' => 0,
      ),
      'description_field' => array(
        'default' => 0,
      ),
      'view_mode' => array(
        'default' => 'full',
      ),
    ),
  );
  $options['attributes'] = array(
    'default' => NULL,
    'translatable' => FALSE,
  );
  $options['jsonp_prefix'] = array(
    'default' => NULL,
    'translatable' => FALSE,
  );
  $options['content_type'] = array(
    'default' => 'default',
    'translatable' => FALSE,
  );
  $options['using_views_api_mode'] = array(
    'default' => FALSE,
    'translatable' => FALSE,
  );
  return $options;
}