You are here

function hook_openlayers_map_alter in Openlayers 6

Same name and namespace in other branches
  1. 6.2 docs/openlayers.api.php \hook_openlayers_map_alter()
  2. 7.2 docs/openlayers.api.php \hook_openlayers_map_alter()

OpenLayers Map Alter

Post-processing Map array alter. Fired after processing the array, and before checking for errors. The whole array is passed along and will allow you to alter it in any way. Adding behaviors, pre-defined layers here will not work. This is good for minor tweaks after the map has been processed.

Parameters

$map: Map array

1 invocation of hook_openlayers_map_alter()
openlayers_render_map in ./openlayers.module
Render Map

File

docs/openlayers.api.php, line 38
Hooks provided by the OpenLayers suite of modules.

Code

function hook_openlayers_map_alter(&$map = array()) {

  // Do something to the $map
}