You are here

public function views_geojson_bbox_argument::options_form in Views GeoJSON 7

Provide additional form options.

Overrides views_handler_argument::options_form

File

views/views_geojson_bbox_argument.inc, line 46

Class

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

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['bbox_wrap'] = array(
    '#type' => 'checkbox',
    '#title' => t('Wrap the bounding box around 360 degrees.'),
    '#description' => t('Depending on the projection of the data it is possible that the bounding box wraps around the edges of the map. This requires extra conditions in the views query. By default wrapping is enabled. Turn it of if the provided coordinates never wrap.'),
    '#default_value' => $this->options['bbox_wrap'],
  );
}