OL3Cesium.php in Openlayers 7.3
Component: OL3Cesium.
File
modules/openlayers_cesium/src/Plugin/Component/OL3Cesium/OL3Cesium.phpView source
<?php
/**
* @file
* Component: OL3Cesium.
*/
namespace Drupal\openlayers_cesium\Plugin\Component\OL3Cesium;
use Drupal\openlayers\Config;
use Drupal\openlayers\Openlayers;
use Drupal\openlayers\Types\Component;
/**
* Class OL3Cesium.
*
* @OpenlayersPlugin(
* id = "OL3Cesium",
* description = "Provides a Openlayers Cesium component."
* )
*/
class OL3Cesium extends Component {
/**
* @inheritDoc
*/
public function attached() {
$attached = parent::attached();
$attached['libraries_load'][] = array(
'ol3-cesium',
);
return $attached;
}
}