You are here

public function views_plugin_style_geojson::option_definition in Views GeoJSON 7

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

Set default options.

Overrides views_plugin_style::option_definition

File

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

Class

views_plugin_style_geojson
Implementation of views_plugin_style.

Code

public 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,
      ),
    ),
  );
  $options['attributes'] = array(
    'default' => NULL,
    'translatable' => FALSE,
  );
  $options['jsonp_prefix'] = array(
    'default' => NULL,
    'translatable' => FALSE,
  );
  $options['content_type'] = array(
    'default' => 'default',
    'translatable' => FALSE,
  );
  $options['typed_data_excluded_fields'] = array(
    'default' => array(),
    'translatable' => FALSE,
  );
  $options['using_views_api_mode'] = array(
    'default' => FALSE,
    'translatable' => FALSE,
  );
  return $options;
}