You are here

public function views_geojson_bbox_argument::option_definition in Views GeoJSON 7

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

Filter options definition.

Overrides views_handler_argument::option_definition

File

views/views_geojson_bbox_argument.inc, line 31

Class

views_geojson_bbox_argument
Custom filter to return only points within a provided bounding box.

Code

public function option_definition() {
  $options = parent::option_definition();
  $options['arg_id'] = array(
    'default' => 'bbox',
  );
  $options['empty_result'] = array(
    'default' => FALSE,
    'bool' => TRUE,
  );
  $options['bbox_wrap'] = array(
    'default' => TRUE,
    'bool' => TRUE,
  );
  return $options;
}