You are here

function openlayers_layers_openlayers_layers_handler_info in Openlayers 6

Implementation of hook_openlayers_layers_handler().

File

modules/openlayers_layers/openlayers_layers.module, line 45
This file holds the main Drupal hook functions and private functions for the openlayers_layers module.

Code

function openlayers_layers_openlayers_layers_handler_info($map = array()) {

  // Define Layer Types that won't be used outside of this module
  // such as Google Maps, Yahoo Maps, and MS Virtual Earth
  $js_file = drupal_get_path('module', 'openlayers_layers') . '/js/openlayers_layers.layers.js';
  return array(
    'KML' => array(
      'layer_handler' => 'KML',
      'js_file' => $js_file,
    ),
    'XYZ' => array(
      'layer_handler' => 'XYZ',
      'js_file' => $js_file,
    ),
    'Google' => array(
      'layer_handler' => 'Google',
      'js_file' => $js_file,
    ),
    'VirtualEarth' => array(
      'layer_handler' => 'VirtualEarth',
      'js_file' => $js_file,
    ),
    'Yahoo' => array(
      'layer_handler' => 'Yahoo',
      'js_file' => $js_file,
    ),
    'CloudMade' => array(
      'layer_handler' => 'CloudMade',
      'js_file' => $js_file,
    ),
  );
}