You are here

function openlayers_ui_help in Openlayers 7.2

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

Implements hook_help

File

modules/openlayers_ui/openlayers_ui.module, line 56
Main Drupal module file for the OpenLayers UI module

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/structure/openlayers':
      return '<p>' . t('Configure where Drupal finds
        the OpenLayers javascript library. Using a local copy of OpenLayers
        can be desirable, but remember to set the Image Path and
        CSS Path options in every map, because OpenLayers is not able to find these resources
        automatically. See the included documentation in /doc for
        more details.') . '</p>';
    case 'admin/structure/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/structure/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/structure/openlayers/maps':
      return '<p>' . t('Maps 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/structure/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/structure/openlayers/projections':
      return t('<p><a href="http://en.wikipedia.org/wiki/Map_projection">Projections</a> describe how the earth is flattened to a map image. They define coordinate systems for data retrieval.</p>');
    case 'admin/structure/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>';
  }
}