function getlocations_mapquest_map_settings_do in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_mapquest/getlocations_mapquest.module \getlocations_mapquest_map_settings_do()
Function
Return value
Returns
4 calls to getlocations_mapquest_map_settings_do()
- getlocations_mapquest_entity_type_map in modules/
getlocations_mapquest/ getlocations_mapquest.module - Function
- getlocations_mapquest_field_formatter_view in modules/
getlocations_mapquest/ getlocations_mapquest.module - Implements hook_field_formatter_view(). Build a renderable array for a field value.
- template_preprocess_getlocations_mapquest_view_map in modules/
getlocations_mapquest/ views/ getlocations_mapquest.views.inc - Preprocess function for getlocations_mapquest_view_map.tpl
- theme_getlocations_mapquest_settings_form in modules/
getlocations_mapquest/ getlocations_mapquest.module - Function
File
- modules/
getlocations_mapquest/ getlocations_mapquest.module, line 838 - getlocations_mapquest.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_mapquest_map_settings_do($map_settings, $defaults, $latlons, $mapid) {
// $map_settings['map_opts']
$map_settings['map_opts']['zoom'] = $defaults['zoom'];
$map_settings['map_opts']['nodezoom'] = $defaults['nodezoom'];
$map_settings['map_opts']['latlong'] = $defaults['latlong'];
$map_settings['map_opts']['minzoom_map'] = $defaults['minzoom_map'];
$map_settings['map_opts']['maxzoom_map'] = $defaults['maxzoom_map'];
$map_settings['map_opts']['maps_default'] = $defaults['maps_default'];
$map_settings['map_opts']['bestfitmargin'] = $defaults['bestfitmargin'];
$map_settings['map_opts']['doubleClickZoom'] = $defaults['doubleClickZoom'] ? TRUE : FALSE;
$map_settings['map_settings']['scrollWheelZoom'] = $defaults['scrollWheelZoom'];
$map_settings['map_settings']['dragging'] = $defaults['dragging'];
$map_settings['map_settings']['zoomControl'] = $defaults['zoomControl'];
$map_settings['map_settings']['zoomcontrolposition'] = $defaults['zoomcontrolposition'];
$map_settings['map_settings']['zoomcontrol_vset'] = $defaults['zoomcontrol_vset'];
$map_settings['map_settings']['zoomcontrol_hset'] = $defaults['zoomcontrol_hset'];
$map_settings['map_settings']['layerControl'] = $defaults['layerControl'];
$map_settings['map_settings']['layercontrolposition'] = $defaults['layercontrolposition'];
$map_settings['map_settings']['layercontrol_vset'] = $defaults['layercontrol_vset'];
$map_settings['map_settings']['layercontrol_hset'] = $defaults['layercontrol_hset'];
$map_settings['map_settings']['overview'] = $defaults['overview'];
$map_settings['map_settings']['overviewposition'] = $defaults['overviewposition'];
$map_settings['map_settings']['overview_opened'] = $defaults['overview_opened'];
$map_settings['map_settings']['overview_vset'] = $defaults['overview_vset'];
$map_settings['map_settings']['overview_hset'] = $defaults['overview_hset'];
$map_settings['map_settings']['overview_zoom'] = $defaults['overview_zoom'];
$map_settings['map_settings']['trafficControl'] = $defaults['trafficControl'];
$map_settings['map_settings']['trafficcontrolposition'] = $defaults['trafficcontrolposition'];
$map_settings['map_settings']['trafficcontrol_vset'] = $defaults['trafficcontrol_vset'];
$map_settings['map_settings']['trafficcontrol_hset'] = $defaults['trafficcontrol_hset'];
$map_settings['map_settings']['drawingControl'] = $defaults['drawingControl'];
$map_settings['map_settings']['drawingcontrolposition'] = $defaults['drawingcontrolposition'];
$map_settings['map_settings']['drawingcontrol_vset'] = $defaults['drawingcontrol_vset'];
$map_settings['map_settings']['drawingcontrol_hset'] = $defaults['drawingcontrol_hset'];
$map_settings['map_settings']['geolocationControl'] = $defaults['geolocationControl'];
$map_settings['map_settings']['geolocationcontrolposition'] = $defaults['geolocationcontrolposition'];
$map_settings['map_settings']['geolocationcontrol_vset'] = $defaults['geolocationcontrol_vset'];
$map_settings['map_settings']['geolocationcontrol_hset'] = $defaults['geolocationcontrol_hset'];
$map_settings['map_settings']['markeraction'] = $defaults['markeraction'];
$map_settings['map_settings']['show_maplinks'] = $defaults['show_maplinks'];
#$map_settings['map_settings'][''] = $defaults[''];
$map_settings['map_settings']['show_search_distance'] = $defaults['show_search_distance'];
$map_settings['map_settings']['views_search_marker_enable'] = $defaults['views_search_marker_enable'];
$map_settings['map_settings']['views_search_marker'] = $defaults['views_search_marker'];
$map_settings['map_settings']['views_search_marker_info'] = '';
if ($defaults['views_search_marker']) {
$map_settings['map_settings']['views_search_marker_info'] = getlocations_mapquest_get_marker($defaults['views_search_marker']);
}
$map_settings['map_settings']['views_search_marker_toggle'] = $defaults['views_search_marker_toggle'];
$map_settings['map_settings']['views_search_marker_toggle_active'] = $defaults['views_search_marker_toggle_active'];
$map_settings['map_settings']['views_search_radshape_enable'] = $defaults['views_search_radshape_enable'];
$map_settings['map_settings']['views_search_radshape_strokecolor'] = $defaults['views_search_radshape_strokecolor'];
$map_settings['map_settings']['views_search_radshape_strokeopacity'] = $defaults['views_search_radshape_strokeopacity'];
$map_settings['map_settings']['views_search_radshape_strokeweight'] = $defaults['views_search_radshape_strokeweight'];
$map_settings['map_settings']['views_search_radshape_fillcolor'] = $defaults['views_search_radshape_fillcolor'];
$map_settings['map_settings']['views_search_radshape_fillopacity'] = $defaults['views_search_radshape_fillopacity'];
$map_settings['map_settings']['views_search_radshape_toggle'] = $defaults['views_search_radshape_toggle'];
$map_settings['map_settings']['views_search_radshape_toggle_active'] = $defaults['views_search_radshape_toggle_active'];
$map_settings['map_settings']['views_search_center'] = $defaults['views_search_center'];
$map_settings['map_settings']['geolocation_mobile_check'] = $defaults['geolocation_mobile_check'];
// field group support;
$map_settings['map_settings']['field_group_enable'] = module_exists('field_group') ? 1 : 0;
return $map_settings;
}