You are here

function hook_openlayers_map_preprocess_alter in Openlayers 6.2

Same name and namespace in other branches
  1. 6 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 function implements hook_openlayers_map_preprocess_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

openlayers_test_openlayers_map_preprocess_alter in tests/openlayers_test.module
Impements hook_openlayers_map_preprocess_alter().
1 invocation of hook_openlayers_map_preprocess_alter()
openlayers_build_map in ./openlayers.module
Prepare a map for rendering.

File

docs/openlayers.api.php, line 23
Hooks provided by the OpenLayers suite of modules. This file allows hooks to be documented automatically with Doxygen, like on api.drupal.org.

Code

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

  // Do something to the $map
}