You are here

function hook_openlayers_map_preprocess_alter in Openlayers 6

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

OpenLayers Map Preprocess Alter

Map array alter. Fired before processing the array, and before checking for errors. The whole array is passed along and will allow you to alter it in any way. This is a good place to alter the map, if the other hooks do not provide the functionality you need.

Parameters

$map: Map array

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

File

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

Code

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

  // Do something to the $map
}