You are here

function openlayers_openlayers_layers_handler_info in Openlayers 6

Implementation of hook_openlayers_layers_handler_info().

File

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

Code

function openlayers_openlayers_layers_handler_info($map = array()) {
  return array(
    'WMS' => array(
      'layer_handler' => 'WMS',
      'js_file' => drupal_get_path('module', 'openlayers') . '/js/openlayers.layers.js',
    ),
    'Vector' => array(
      'layer_handler' => 'Vector',
      'js_file' => drupal_get_path('module', 'openlayers') . '/js/openlayers.layers.js',
    ),
  );
}