gmap_extrabaselayers.module in GMap Addons 5
Same filename and directory in other branches
Enable adding the special Moon, Mars, and Sky map types to a google map.
File
gmap_extrabaselayers/gmap_extrabaselayers.moduleView source
<?php
/**
* @file
* Enable adding the special Moon, Mars, and Sky map types to a google map.
*/
function gmap_extrabaselayers_gmap($op, &$map = null) {
switch ($op) {
case 'pre_theme_map':
// @@@
drupal_add_js(drupal_get_path('module', 'gmap_extrabaselayers') . '/gmap_extrabaselayers.js');
break;
case 'baselayers':
$map['Google Moon']['G_MOON_ELEVATION_MAP'] = array(
'title' => t('elevation: Moon elevation map.'),
'default' => FALSE,
'help' => t('Google Moon shaded terrain map. Internal name: G_MOON_ELEVATION_MAP'),
);
$map['Google Moon']['G_MOON_VISIBLE_MAP'] = array(
'title' => t('visible: Moon imagery map.'),
'default' => FALSE,
'help' => t('Photographs taken from orbit around the moon. Internal name: G_MOON_VISIBLE_MAP'),
);
$map['Google Mars']['G_MARS_ELEVATION_MAP'] = array(
'title' => t('Elevation: Mars elevation map.'),
'default' => FALSE,
'help' => t('Google Mars shaded relief map. Internal name: G_MARS_ELEVATION_MAP'),
);
$map['Google Mars']['G_MARS_VISIBLE_MAP'] = array(
'title' => t('Visible: Mars imagery map.'),
'default' => FALSE,
'help' => t('Photographs taken from orbit around Mars. Internal name: G_MARS_VISIBLE_MAP'),
);
$map['Google Mars']['G_MARS_INFRARED_MAP'] = array(
'title' => t('Infrared: Mars infrared map.'),
'default' => FALSE,
'help' => t('Google Mars shaded infrared map. Internal name: G_MARS_INFRARED_MAP'),
);
}
}
Functions
Name![]() |
Description |
---|---|
gmap_extrabaselayers_gmap | @file Enable adding the special Moon, Mars, and Sky map types to a google map. |