You are here

public function Style::getJS in Openlayers 7.3

!Attention! This function will remove any option that is named after a plugin type e.g.: layers, controls, styles, interactions, components .

Overrides Base::getJS

File

src/Types/Style.php, line 23
Class Style.

Class

Style
Class Style.

Namespace

Drupal\openlayers\Types

Code

public function getJS() {
  $js = parent::getJS();
  unset($js['opt']['styles']);
  return $js;
}