GeoJsonExport.php in Views GeoJSON 8
File
src/Plugin/views/display/GeoJsonExport.php
View source
<?php
namespace Drupal\views_geojson\Plugin\views\display;
use Drupal\rest\Plugin\views\display\RestExport;
class GeoJsonExport extends RestExport {
protected function defineOptions() {
$options = parent::defineOptions();
$options['style']['contains']['type']['default'] = 'geojson';
$options['row']['contains']['type']['default'] = 'data_field';
return $options;
}
}
Classes
Name |
Description |
GeoJsonExport |
The plugin that handles Data response callbacks for GeoJSON REST resources. |