You are here

function hook_openlayers_map_alter in Openlayers 6.2

Same name and namespace in other branches
  1. 6 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 function implements hook_openlayers_map_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_alter in tests/openlayers_test.module
Impements hook_openlayers_map_alter().
1 invocation of hook_openlayers_map_alter()
openlayers_build_map in ./openlayers.module
Prepare a map for rendering.

File

docs/openlayers.api.php, line 39
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_alter(&$map = array()) {

  // Do something to the $map
}