You are here

function openlayers_get_map in Openlayers 6

OpenLayers Get Map

Given an a string or integer, get just map array

Parameters

$name: The preset name

Return value

Array of preset data

Related topics

3 calls to openlayers_get_map()
openlayers_filters_filter in modules/openlayers_filters/openlayers_filters.module
Implementation of hook_filter().
theme_openlayers_cck_formatter_map in modules/openlayers_cck/openlayers_cck.module
Theme function for openlayers cck formatters
_openlayers_cck_render_element_map in modules/openlayers_cck/openlayers_cck.module
Render Map for Widget

File

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

Code

function openlayers_get_map($name = '') {

  // Get preset
  $preset = openlayers_get_preset($name);

  // Check for data
  if (is_array($preset['preset_data'])) {
    return $preset['preset_data'];
  }
  else {
    return array();
  }
}