You are here

function openlayers_styles in Openlayers 6.2

Same name and namespace in other branches
  1. 7.2 openlayers.module \openlayers_styles()

Get all openlayers styles.

Parameters

$reset: Boolean whether to reset cache or not.

Return value

Array of all available styles.

4 calls to openlayers_styles()
openlayers_style_load in ./openlayers.module
Load a style object by name.
openlayers_ui_get_style_options in modules/openlayers_ui/openlayers_ui.module
Get style options.
openlayers_ui_object_list in modules/openlayers_ui/openlayers_ui.module
Menu callback for Layers.
_openlayers_styles_process in includes/openlayers.render.inc
Process Styles
9 string references to 'openlayers_styles'
openlayers_cck_ctools_plugin_api in modules/openlayers_cck/openlayers_cck.module
Implementation of hook_ctools_plugin_api().
openlayers_ctools_plugin_api in ./openlayers.module
Implementation of hook_ctools_plugin_api().
openlayers_example_ctools_plugin_api in docs/openlayers.api.php
CTools Registration Hook
openlayers_schema in ./openlayers.install
Implementation of hook_schema().
openlayers_style_save in ./openlayers.module
Save style.

... See full list

File

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

Code

function openlayers_styles($reset = FALSE) {
  ctools_include('export');
  if ($reset) {
    ctools_export_load_object_reset('openlayers_styles');
  }
  $styles = ctools_export_load_object('openlayers_styles', 'all', array());
  return $styles;
}