interface LayerInterface in Openlayers 7.3
Interface LayerInterface.
Hierarchy
- interface \Drupal\openlayers\Types\ObjectInterface extends \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\openlayers\Types\LayerInterface
Expanded class hierarchy of LayerInterface
All classes that implement LayerInterface
1 file declares its use of LayerInterface
- OL3LayerSwitcher.php in modules/
openlayers_library/ src/ Plugin/ Control/ OL3LayerSwitcher/ OL3LayerSwitcher.php - Control: Attribution.
File
- src/
Types/ LayerInterface.php, line 12 - Interface LayerInterface.
Namespace
Drupal\openlayers\TypesView source
interface LayerInterface extends ObjectInterface {
/**
* Returns the source of this layer.
*
* @return SourceInterface|FALSE
* The source of this layer.
*/
public function getSource();
/**
* Set the source of this layer.
*
* @param SourceInterface $source
* The source object.
*
* @return LayerInterface
* The parent layer.
*/
public function setSource(SourceInterface $source);
/**
* Returns the style of this layer.
*
* @return StyleInterface|FALSE
* The style of this layer.
*/
public function getStyle();
/**
* Set the style of this layer.
*
* @param StyleInterface $style
* The style object.
*
* @return LayerInterface
* The parent layer.
*/
public function setStyle(StyleInterface $style);
/**
* Set the opacity of the layer.
*
* @param float $opacity
* The opacity value, allowed values range from 0 to 1.
*
* @return LayerInterface
* The parent layer.
*/
public function setOpacity($opacity);
/**
* Return the opacity of the layer (between 0 and 1).
*
* @return float
* The opacity of the layer.
*/
public function getOpacity();
/**
* Set Z-index of the layer, which is used to order layers before rendering.
*
* @param int $zindex
* The Z-Index. Default is 0.
*
* @return LayerInterface
* The parent layer.
*/
public function setZIndex($zindex);
/**
* Return the Z-index of the layer.
*
* @return int
* The Z-Index.
*/
public function getZIndex();
/**
* Set the visibility of the layer.
*
* @param bool $visibility
* The visibility of the layer, TRUE or FALSE.
*
* @return LayerInterface
* The parent layer.
*/
public function setVisible($visibility);
/**
* Return the visibility of the layer.
*
* @return bool
* The visibility of the layer, TRUE or FALSE.
*/
public function getVisible();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LayerInterface:: |
public | function | Return the opacity of the layer (between 0 and 1). | 2 |
LayerInterface:: |
public | function | Returns the source of this layer. | 2 |
LayerInterface:: |
public | function | Returns the style of this layer. | 2 |
LayerInterface:: |
public | function | Return the visibility of the layer. | 2 |
LayerInterface:: |
public | function | Return the Z-index of the layer. | 2 |
LayerInterface:: |
public | function | Set the opacity of the layer. | 2 |
LayerInterface:: |
public | function | Set the source of this layer. | 2 |
LayerInterface:: |
public | function | Set the style of this layer. | 2 |
LayerInterface:: |
public | function | Set the visibility of the layer. | 2 |
LayerInterface:: |
public | function | Set Z-index of the layer, which is used to order layers before rendering. | 2 |
ObjectInterface:: |
public | function | Add an object into the collection of the parent object. | 1 |
ObjectInterface:: |
public | function | Returns a list of attachments for building the render array. | 1 |
ObjectInterface:: |
public | function | Remove an option. | 1 |
ObjectInterface:: |
public | function | Defines dependencies. | 1 |
ObjectInterface:: |
public | function | Returns the path to the plugin directory. | 1 |
ObjectInterface:: |
public | function | Returns the path to the class file. | 1 |
ObjectInterface:: |
public | function | Return the Collection object linked to the object. | 1 |
ObjectInterface:: |
public | function | Return the object configuration. | 1 |
ObjectInterface:: |
public | function | Return all the dependencies objects of the parent object. | 1 |
ObjectInterface:: |
public | function | Return the description of the object. | 1 |
ObjectInterface:: |
public | function | Return an object, CTools Exportable. | 1 |
ObjectInterface:: |
public | function | Return the Factory Service of the object. | 1 |
ObjectInterface:: |
public | function | Return the object unique ID. | 2 |
ObjectInterface:: |
public | function | Return the JS to insert in the page when building the object. | 1 |
ObjectInterface:: |
public | function | Return the unique machine name of the object. | 1 |
ObjectInterface:: |
public | function | Return the human name of the object. | 1 |
ObjectInterface:: |
public | function | Return an array of OL objects indexed by their type. | 1 |
ObjectInterface:: |
public | function | Returns an option. | 1 |
ObjectInterface:: |
public | function | Return the options array. | 1 |
ObjectInterface:: |
public | function | Returns an array with the maps this object is attached on. | 1 |
ObjectInterface:: |
public | function | Return the description of the object's plugin. | 1 |
ObjectInterface:: |
public | function | Return the module that provides this plugin. | 1 |
ObjectInterface:: |
public | function | The type of this object. | 1 |
ObjectInterface:: |
public | function | Get the weight of an object. | 1 |
ObjectInterface:: |
public | function | Refresh string translations. | 1 |
ObjectInterface:: |
public | function | Initializes the object. | 1 |
ObjectInterface:: |
public | function | Initializes the Collection, Import objects from options, Import the current object. | 1 |
ObjectInterface:: |
public | function | Whether or not this object has to be processed asynchronously. | 1 |
ObjectInterface:: |
public | function | Provides the options form to configure this object. | 1 |
ObjectInterface:: |
public | function | Submit callback for the options form. | 1 |
ObjectInterface:: |
public | function | Validation callback for the options form. | 1 |
ObjectInterface:: |
public | function | Return a flat array containing Openlayers Objects from the options array. | 1 |
ObjectInterface:: |
public | function | Invoked after an objects render array is built. | 1 |
ObjectInterface:: |
public | function | Invoked before an objects render array is built. | 1 |
ObjectInterface:: |
public | function | Remove an object from the collection. | 1 |
ObjectInterface:: |
public | function | Reset the object's Collection. | 1 |
ObjectInterface:: |
public | function | Set the Factory Service of the object. | 1 |
ObjectInterface:: |
public | function | Set the object ID. | 1 |
ObjectInterface:: |
public | function | Set an option. | 1 |
ObjectInterface:: |
public | function | Set the options array. | 1 |
ObjectInterface:: |
public | function | Set the weight of an object. | 1 |