You are here

public function IconSprites::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

modules/openlayers_library/src/Plugin/Component/IconSprites/IconSprites.php, line 24
Component: IconSprites.

Class

IconSprites
Class IconSprites.

Namespace

Drupal\openlayers_library\Plugin\Component\IconSprites

Code

public function getJS() {
  $js = parent::getJS();
  $js['opt']['url'] = file_create_url(drupal_get_path('module', 'openlayers_examples') . '/assets/Butterfly.png');
  return $js;
}