You are here

function openlayers_features_export_options in Openlayers 6

Implementation of hook_features_export_options().

Return value

array of preset names we can export

File

includes/openlayers.features.inc, line 64
OpenLayers Features Support

Code

function openlayers_features_export_options() {
  $preset_list = array();
  $presets = openlayers_get_presets();
  foreach ($presets as $preset_name => $preset) {
    $preset_list[$preset_name] = $preset_name;
  }
  ksort($preset_list);
  return $preset_list;
}