function geofield_map_settings_do in Geofield 7
Same name and namespace in other branches
- 7.2 modules/geofield_map/geofield_map.module \geofield_map_settings_do()
2 calls to geofield_map_settings_do()
- geofield_map_field_formatter_view in modules/
geofield_map/ geofield_map.module - Implements hook_field_formatter_view().
- geofield_map_plugin_style_map::render in modules/
geofield_map/ includes/ geofield_map_plugin_style_map.inc - Renders views (map)
File
- modules/
geofield_map/ geofield_map.module, line 325
Code
function geofield_map_settings_do($settings) {
$map_settings = array(
'zoom' => $settings['geofield_map_zoom'],
'controltype' => $settings['geofield_map_controltype'],
'mtc' => $settings['geofield_map_mtc'],
'pancontrol' => $settings['geofield_map_pancontrol'],
'maptype' => $settings['geofield_map_maptype'],
'baselayers_map' => $settings['geofield_map_baselayers_map'],
'baselayers_satellite' => $settings['geofield_map_baselayers_satellite'],
'baselayers_hybrid' => $settings['geofield_map_baselayers_hybrid'],
'baselayers_physical' => $settings['geofield_map_baselayers_physical'],
'scale' => $settings['geofield_map_scale'],
'overview' => $settings['geofield_map_overview'],
'overview_opened' => $settings['geofield_map_overview_opened'],
'scrollwheel' => $settings['geofield_map_scrollwheel'],
'draggable' => $settings['geofield_map_draggable'],
'streetview_show' => $settings['geofield_map_streetview_show'],
);
return $map_settings;
}