function getlocations_element_map_maptype in Get Locations 6
Same name and namespace in other branches
- 6.2 getlocations.module \getlocations_element_map_maptype()
- 7.2 getlocations.module \getlocations_element_map_maptype()
- 7 getlocations.module \getlocations_element_map_maptype()
1 call to getlocations_element_map_maptype()
File
- ./
getlocations.module, line 1322 - Displays locations on a map. for Drupal 6 using version 3 googlemaps API
Code
function getlocations_element_map_maptype($default, $baselayers) {
$options = array();
$layers = array(
'Map' => t('Standard street map'),
'Satellite' => t('Standard satellite map'),
'Hybrid' => t('Hybrid satellite map'),
'Physical' => t('Terrain map'),
);
foreach ($layers as $key => $layer) {
if ($baselayers[$key]) {
$options[$key] = $layer;
}
}
$element = array(
'#type' => 'select',
'#title' => t('Default map type'),
'#options' => $options,
'#default_value' => $default,
);
return $element;
}