You are here

function openlayers_layers_get_info in Openlayers 6

Get Layer Info

Wrapper around layer info hook

Parameters

$reset: Boolean whether to reset cache or not

Return value

array of layer info

Related topics

3 calls to openlayers_layers_get_info()
openlayers_presets_ui_presets_manage_add in modules/openlayers_presets_ui/includes/openlayers_presets_ui.ui.inc
Menu Callback for Add Preset
_openlayers_layers_process in includes/openlayers.render.inc
Process Layers
_openlayers_presets_ui_convert_map_to_form in modules/openlayers_presets_ui/includes/openlayers_presets_ui.ui.inc
OpenLayers Map to Form

File

./openlayers.module, line 261
Main OpenLayers API File

Code

function openlayers_layers_get_info($reset = FALSE) {
  static $info = NULL;

  // If empty or reset, get info
  if ($info === NULL || $reset == TRUE) {
    $info = module_invoke_all('openlayers_layers_info');
  }
  return $info;
}