function openlayers_layers_openlayers_layers_info in Openlayers 6
Implementation of hook_openlayers_layers_info().
1 call to openlayers_layers_openlayers_layers_info()
- openlayers_layers_process_layers in modules/
openlayers_layers/ includes/ openlayers_layers.layers.inc - Process Layers
File
- modules/
openlayers_layers/ openlayers_layers.module, line 80 - This file holds the main Drupal hook functions and private functions for the openlayers_layers module.
Code
function openlayers_layers_openlayers_layers_info() {
$file = drupal_get_path('module', 'openlayers_layers') . '/includes/openlayers_layers.layers.inc';
$callback = 'openlayers_layers_process_layers';
$info = array();
// Define info array
$info['openlayers_layers_nasa_global_mosaic'] = array(
'name' => t('NASA Global Mosaic'),
'description' => t('A high resolution global image mosaic of the earth, produced from 1999-2003 Landsat7 scenes. The highest resolution has a resolution of 15 meters.'),
'projection' => array(
'4326',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_nasa_daily_planet'] = array(
'name' => t('NASA Daily Planet'),
'description' => t('This layer is the most current, near-global image of the earth available. It is a countinuously updating image from the MODIS TERRA satellite'),
'projection' => array(
'4326',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_nasa_blue_marble'] = array(
'name' => t('NASA Blue Marbel'),
'description' => t('Blue Marble Next Generation, A MODIS-derived 500m true color earth dataset showing seasonal dynamics. This version of the BMNG was updated June 2007'),
'projection' => array(
'4326',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_open_aerial'] = array(
'name' => t('Open Aerial'),
'description' => t('OpenAerialMap is an open collection of aerial photographs, collected into a single coherent view of the world.'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_google_street'] = array(
'name' => t('Google Street'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_google_satellite'] = array(
'name' => t('Google Satellite'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_google_hybrid'] = array(
'name' => t('Google Hybrid'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_google_physical'] = array(
'name' => t('Google Physical'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_yahoo_street'] = array(
'name' => t('Yahoo Street'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_yahoo_satellite'] = array(
'name' => t('Yahoo Satellite'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_yahoo_hybrid'] = array(
'name' => t('Yahoo Hybrid'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_virtual_earth_street'] = array(
'name' => t('Virtual Earth Street'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_virtual_earth_satellite'] = array(
'name' => t('Virtual Earth Satellite'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_virtual_earth_hybrid'] = array(
'name' => t('Virtual Earth Hybrid'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_osm_mapnik'] = array(
'name' => t('OSM Mapnik'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_osm_tah'] = array(
'name' => t('OSM Tiles@Home'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_osm_cycle'] = array(
'name' => t('OSM Cycling Map'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_osm_4326_hybrid'] = array(
'name' => t('OSM Overlay'),
'description' => t('Semi-transparent hybrid overlay. Projectd into WSG84 for use on non spherical-mercator maps.'),
'projection' => array(
'4326',
),
'baselayer' => FALSE,
'file' => $file,
'callback' => $callback,
);
$info['openlayers_layers_cloudmade'] = array(
'name' => t('CloudMade'),
'description' => t('CloudMade tiles. See <a href="http://www.cloudmade.com/">CloudMade</a>.'),
'projection' => array(
'900913',
),
'baselayer' => TRUE,
'file' => $file,
'callback' => $callback,
);
// If KML module is enable, create layer for local KML feed
if (module_exists('kml')) {
$info['openlayers_layers_local_kml'] = array(
'name' => t('Local KML Feed'),
'file' => $file,
'callback' => $callback,
);
}
return $info;
}