You are here

function _openlayers_presets_ui_available_controls in Openlayers 6

Get Available Controls

Builds an array of available controls for the form.

Return value

Array of available controls

1 call to _openlayers_presets_ui_available_controls()
openlayers_presets_ui_presets_manage_add in modules/openlayers_presets_ui/includes/openlayers_presets_ui.ui.inc
Menu Callback for Add Preset

File

modules/openlayers_presets_ui/includes/openlayers_presets_ui.ui.inc, line 1147
This file holds the functions for the openlayers presets ui

Code

function _openlayers_presets_ui_available_controls() {
  $available = array();

  // Define array
  $available['Attribution'] = array(
    'title' => t('Attribution'),
    'description' => t('Allows layers to provide attribution to the map if it exists.'),
  );
  $available['KeyboardDefaults'] = array(
    'title' => t('Keyboard Defaults'),
    'description' => t('Provides the ability to use the keyboard to pan and zoom map.'),
  );
  $available['LayerSwitcher'] = array(
    'title' => t('Layer Switcher'),
    'description' => t('Provides the ability to switch Layers in the map interface.'),
  );
  $available['MousePosition'] = array(
    'title' => t('Mouse Position'),
    'description' => t('Provides a visual indication of the mouse position to the user.'),
  );
  $available['Navigation'] = array(
    'title' => t('Navigation'),
    'description' => t('Provides the ability to navigate the map interface.'),
  );
  $available['PanZoomBar'] = array(
    'title' => t('Pan Zoom Bar'),
    'description' => t('Provides the ability to pan and zoom in the map interface. The Navigation control needs to be enabled for this to function to work properly.'),
  );
  $available['PanZoom'] = array(
    'title' => t('Pan Zoom'),
    'description' => t('Provides a smaller version of the Pan Zoom Bar.  The Navigation control needs to be enabled for this to function.'),
  );
  $available['Permalink'] = array(
    'title' => t('Permanent Link'),
    'description' => t('Provides a URL that will link to a specific map position.'),
  );
  $available['ScaleLine'] = array(
    'title' => t('Scale Line'),
    'description' => t('Provides the user with a line of scale in the map interface.'),
  );
  $available['ZoomBox'] = array(
    'title' => t('Zoom Box'),
    'description' => t('Provides the ability for the user to draw a box on screen to zoom with Shift + Click.'),
  );
  $available['ZoomToMaxExtent'] = array(
    'title' => t('Zoom to Max Extent'),
    'description' => t('Provides a button to zoom to the maximum extent of the map.'),
  );
  return $available;
}