You are here

function openlayers_style_load in Openlayers 6.2

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

Load a style object by name.

This function can also be used as a menu loader for a style.

Parameters

$name: The string identifier of the style.

$reset: Boolean whether to reset the cache or not.

Return value

A style object or FALSE if not found.

File

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

Code

function openlayers_style_load($name, $reset = FALSE) {
  $styles = openlayers_styles($reset);
  return !empty($styles[$name]) ? $styles[$name] : FALSE;
}