interface MapInterface in Openlayers 7.3
Interface MapInterface.
Hierarchy
- interface \Drupal\openlayers\Types\ObjectInterface extends \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\openlayers\Types\MapInterface
Expanded class hierarchy of MapInterface
All classes that implement MapInterface
2 files declare their use of MapInterface
- BlockLayerSwitcher.php in modules/
openlayers_library/ src/ Plugin/ Component/ BlockLayerSwitcher/ BlockLayerSwitcher.php - Component: Block Layer Switcher.
- OpenlayersStyles.php in modules/
openlayers_ui/ src/ Plugin/ export_ui/ OpenlayersStyles.php - Class openlayers_components_ui.
File
- src/
Types/ MapInterface.php, line 12 - Interface MapInterface.
Namespace
Drupal\openlayers\TypesView source
interface MapInterface extends ObjectInterface {
/**
* Returns the id of this map.
*
* @return string
* The id of this map.
*/
public function getId();
/**
* Add a layer to the map.
*
* @param LayerInterface $layer
* The layer object to add.
*
* @return MapInterface
* The parent map.
*/
public function addLayer(LayerInterface $layer);
/**
* Add a component to the map.
*
* @param ComponentInterface $component
* The component object to add.
*
* @return MapInterface
* The parent map.
*/
public function addComponent(ComponentInterface $component);
/**
* Add a control to the map.
*
* @param ControlInterface $control
* The control object to add.
*
* @return MapInterface
* The parent map.
*/
public function addControl(ControlInterface $control);
/**
* Add an interaction to the map.
*
* @param InteractionInterface $interaction
* The interaction object to add.
*
* @return MapInterface
* The parent map.
*/
public function addInteraction(InteractionInterface $interaction);
/**
* Remove a layer from the map.
*
* @param string $layer_id
* The machine name (or id) of the layer to remove.
*
* @return MapInterface
* The map.
*/
public function removeLayer($layer_id);
/**
* Remove a component from the map.
*
* @param string $component_id
* The machine name (or id) of the component to remove.
*
* @return MapInterface
* The map.
*/
public function removeComponent($component_id);
/**
* Remove a control from the map.
*
* @param string $control_id
* The machine name (or id) of the control to remove.
*
* @return MapInterface
* The map.
*/
public function removeControl($control_id);
/**
* Remove a interaction from the map.
*
* @param string $interaction_id
* The machine name (or id) of the interaction to remove.
*
* @return MapInterface
* The map.
*/
public function removeInteraction($interaction_id);
/**
* Build render array of a map.
*
* @param array $build
* The build array before being completed.
*
* @return array
* The render array.
*/
public function build(array $build = array());
/**
* Render a build array into HTML.
*
* @return array
* The map HTML.
*/
public function render();
/**
* Return the size of the map.
*
* @return array $size
* Return an array with width and height.
*/
public function getSize();
/**
* Set the size of the map.
*
* @param array $size
* An array with two elements, a width and a height.
*
* @return MapInterface
* The map.
*/
public function setSize(array $size = array());
/**
* Set the target element to render this map into.
*
* @param string $target
* The html ID of the element to render the map into.
*
* @return MapInterface
* The map.
*/
public function setTarget($target);
/**
* Get the target ID in which this map is rendered.
*
* @return string
* The ID of the Element that the map is rendered in.
*/
public function getTarget();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MapInterface:: |
public | function | Add a component to the map. | 1 |
MapInterface:: |
public | function | Add a control to the map. | 1 |
MapInterface:: |
public | function | Add an interaction to the map. | 1 |
MapInterface:: |
public | function | Add a layer to the map. | 1 |
MapInterface:: |
public | function | Build render array of a map. | 1 |
MapInterface:: |
public | function |
Returns the id of this map. Overrides ObjectInterface:: |
|
MapInterface:: |
public | function | Return the size of the map. | 1 |
MapInterface:: |
public | function | Get the target ID in which this map is rendered. | 1 |
MapInterface:: |
public | function | Remove a component from the map. | 1 |
MapInterface:: |
public | function | Remove a control from the map. | 1 |
MapInterface:: |
public | function | Remove a interaction from the map. | 1 |
MapInterface:: |
public | function | Remove a layer from the map. | 1 |
MapInterface:: |
public | function | Render a build array into HTML. | 1 |
MapInterface:: |
public | function | Set the size of the map. | 1 |
MapInterface:: |
public | function | Set the target element to render this map into. | 1 |
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 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 |