You are here

protected function OpenlayersMap::defineOptions in Openlayers 8.4

Overrides \Drupal\views\Plugin\views\style\StylePluginBase\StylePluginBase::defineOptions().

Overrides StylePluginBase::defineOptions

File

src/Plugin/views/style/OpenlayersMap.php, line 76
Definition of Drupal\openlayers\Plugin\views\style\OpenlayersMap.

Class

OpenlayersMap
Style plugin to render geodata on an Openlayers map.

Namespace

Drupal\openlayers\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['data_source'] = array(
    'default' => '',
  );
  $options['height'] = array(
    'default' => '400',
  );
  $options['height_unit'] = array(
    'default' => 'px',
  );
  return $options;
}