You are here

function openlayers_ui_help in Openlayers 6.2

Same name and namespace in other branches
  1. 7.3 modules/openlayers_ui/openlayers_ui.module \openlayers_ui_help()
  2. 7.2 modules/openlayers_ui/openlayers_ui.module \openlayers_ui_help()

Implementation of hook_help

File

modules/openlayers_ui/openlayers_ui.module, line 6

Code

function openlayers_ui_help($path, $arg) {
  switch ($path) {
    case 'admin/help#openlayers_ui':
      return '<p>' . t('Provides a user interface to manage OpenLayers maps.') . '</p>';
    case 'admin/build/openlayers':
      return '<p>' . t('Configure where Drupal finds
        the OpenLayers javascript library. Using a local or <a href="@olb">compacted
        version</a> of OpenLayers can reduce filesize, but remember to set the Image Path and
        CSS Path options in every preset, because OpenLayers is not able to find these resources
        automatically. See the included documentation in /doc for
        more details.', array(
        '@olb' => 'http://trac.openlayers.org/wiki/Profiles',
      )) . '</p>';
    case 'admin/build/openlayers/styles':
      return '<p>' . t('OpenLayer styles are stored versions of
        <a href="@ols">javascript StyleMap objects</a>, but are much easier to
        configure through an interface. Styles will typically define the icon,
        fill color, border, and radius of points or polygons, so they are used
        on overlays more often than base layers, which are not affected by vector
        styles.', array(
        "@ols" => 'http://trac.openlayers.org/wiki/Styles',
      )) . '</p>';
    case 'admin/build/openlayers/styles/add':
      return '<p>' . t('The name, title, and description you give a style is for Drupal\'s
        interal storage. The rest of the properties are documented on openlayers.org') . '</p>';
    case 'admin/build/openlayers/presets':
      return '<p>' . t('Presets are combinations of the layers, styles, and behaviors
        which constitute maps. They also contain basic configuration like the
        width and centerpoint of the map - everything except for a mechanism
        to put a map on a page. For that, use the Views OpenLayers Map style.') . '</p>';
    case 'admin/build/openlayers/layers':
      return '<p>' . t('Layers are stored versions of javascript OpenLayers layer
        objects. They point at a data source, like OpenStreetMap, Google Maps,
        or Drupal itself, and sometimes define the zoom levels for which they apply.') . '</p>';
    case 'admin/build/openlayers/layers/settings':
      return '<p>' . t('Commercial layer providers like Google will require API keys
        to ensure that users are\'t abusing the service and to enforce limits. Not all
        of these keys are required, of course, only those that are used on a site.') . '</p>';
  }
}