You are here

function openlayers_map_options in Openlayers 7.2

Get map options in an array suitable for a FormAPI element.

Parameters

$reset: Boolean whether to reset or not.

Return value

Return array of formatted data.

5 calls to openlayers_map_options()
openlayers_preset_options in ./openlayers.module
openlayers_simple::options_form in plugins/boxes/openlayers_simple.inc
Implementation of boxes_content::options_form().
openlayers_ui_admin_settings in modules/openlayers_ui/includes/openlayers_ui.admin.inc
Menu callback; displays the openlayers module settings page.
openlayers_views_style_map::options_form in modules/openlayers_views/views/openlayers_views_style_map.inc
Options form
QuickMap::optionsForm in plugins/quicktabs/QuickMap.inc
Method for returning the form elements to display for this tab type on the admin form.

File

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

Code

function openlayers_map_options($reset = FALSE) {
  $maps = openlayers_maps($reset);
  $options = array();
  foreach ($maps as $map) {
    $options[$map->name] = $map->title;
  }
  return $options;
}