You are here

function getlocations_fields_getmap_show in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_fields/getlocations_fields.module \getlocations_fields_getmap_show()

Used by theme for display output.

1 call to getlocations_fields_getmap_show()
theme_getlocations_fields_show in modules/getlocations_fields/getlocations_fields.module

File

modules/getlocations_fields/getlocations_fields.module, line 1803
getlocations_fields.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_fields_getmap_show($settings, $lls = '', $minmaxes = '') {
  $getlocations_defaults = getlocations_defaults();
  $getlocations_defaults['controltype'] = $settings['controltype'];
  $getlocations_defaults['pancontrol'] = $settings['pancontrol'];
  $getlocations_defaults['mtc'] = $settings['mtc'];
  $getlocations_defaults['maptype'] = $settings['maptype'];
  $getlocations_defaults['baselayers'] = $settings['baselayers'];
  $getlocations_defaults['scale'] = $settings['scale'];
  $getlocations_defaults['overview'] = $settings['overview'];
  $getlocations_defaults['overview_opened'] = $settings['overview_opened'];
  $getlocations_defaults['scrollwheel'] = $settings['scrollwheel'];
  $getlocations_defaults['draggable'] = $settings['draggable'];
  $getlocations_defaults['sv_show'] = $settings['sv_show'];
  $getlocations_defaults['sv_showfirst'] = $settings['sv_showfirst'];
  $getlocations_defaults['sv_heading'] = $settings['sv_heading'];
  $getlocations_defaults['sv_zoom'] = $settings['sv_zoom'];
  $getlocations_defaults['sv_pitch'] = $settings['sv_pitch'];
  $getlocations_defaults['trafficinfo'] = $settings['trafficinfo'];
  $getlocations_defaults['trafficinfo_state'] = $settings['trafficinfo_state'];
  $getlocations_defaults['bicycleinfo'] = $settings['bicycleinfo'];
  $getlocations_defaults['bicycleinfo_state'] = $settings['bicycleinfo_state'];
  $getlocations_defaults['transitinfo'] = $settings['transitinfo'];
  $getlocations_defaults['transitinfo_state'] = $settings['transitinfo_state'];
  $getlocations_defaults['poi_show'] = $settings['poi_show'];
  $getlocations_defaults['transit_show'] = $settings['transit_show'];
  $getlocations_defaults['node_map_marker'] = $settings['node_map_marker'];
  $getlocations_defaults['user_map_marker'] = $settings['user_map_marker'];
  $getlocations_defaults['vocabulary_map_marker'] = $settings['vocabulary_map_marker'];
  $getlocations_defaults['comment_map_marker'] = $settings['comment_map_marker'];
  $getlocations_defaults['markeraction'] = $settings['markeraction'];
  $getlocations_defaults['markeractiontype'] = $settings['markeractiontype'];
  $getlocations_defaults['markeraction_click_zoom'] = $settings['markeraction_click_zoom'];
  $getlocations_defaults['markeraction_click_center'] = $settings['markeraction_click_center'];
  $getlocations_defaults['nodezoom'] = $settings['nodezoom'];
  $getlocations_defaults['map_backgroundcolor'] = $settings['map_backgroundcolor'];
  $getlocations_defaults['show_maplinks'] = $settings['show_maplinks'];
  $getlocations_defaults['minzoom_map'] = $settings['minzoom_map'];
  $getlocations_defaults['maxzoom_map'] = $settings['maxzoom_map'];
  $getlocations_defaults['fullscreen'] = $settings['fullscreen'];
  $getlocations_defaults['fullscreen_controlposition'] = $settings['fullscreen_controlposition'];
  $getlocations_defaults['show_bubble_on_one_marker'] = $settings['show_bubble_on_one_marker'];
  $getlocations_defaults['polygons_enable'] = $settings['polygons_enable'];
  $getlocations_defaults['polygons_strokecolor'] = $settings['polygons_strokecolor'];
  $getlocations_defaults['polygons_strokeopacity'] = $settings['polygons_strokeopacity'];
  $getlocations_defaults['polygons_strokeweight'] = $settings['polygons_strokeweight'];
  $getlocations_defaults['polygons_fillcolor'] = $settings['polygons_fillcolor'];
  $getlocations_defaults['polygons_fillopacity'] = $settings['polygons_fillopacity'];
  $getlocations_defaults['polygons_coords'] = $settings['polygons_coords'];
  $getlocations_defaults['polygons_clickable'] = $settings['polygons_clickable'];
  $getlocations_defaults['polygons_message'] = $settings['polygons_message'];
  $getlocations_defaults['rectangles_enable'] = $settings['rectangles_enable'];
  $getlocations_defaults['rectangles_strokecolor'] = $settings['rectangles_strokecolor'];
  $getlocations_defaults['rectangles_strokeopacity'] = $settings['rectangles_strokeopacity'];
  $getlocations_defaults['rectangles_strokeweight'] = $settings['rectangles_strokeweight'];
  $getlocations_defaults['rectangles_fillcolor'] = $settings['rectangles_fillcolor'];
  $getlocations_defaults['rectangles_fillopacity'] = $settings['rectangles_fillopacity'];
  $getlocations_defaults['rectangles_coords'] = $settings['rectangles_coords'];
  $getlocations_defaults['rectangles_clickable'] = $settings['rectangles_clickable'];
  $getlocations_defaults['rectangles_message'] = $settings['rectangles_message'];
  $getlocations_defaults['rectangles_apply'] = $settings['rectangles_apply'];
  $getlocations_defaults['rectangles_dist'] = $settings['rectangles_dist'];
  $getlocations_defaults['circles_enable'] = $settings['circles_enable'];
  $getlocations_defaults['circles_strokecolor'] = $settings['circles_strokecolor'];
  $getlocations_defaults['circles_strokeopacity'] = $settings['circles_strokeopacity'];
  $getlocations_defaults['circles_strokeweight'] = $settings['circles_strokeweight'];
  $getlocations_defaults['circles_fillcolor'] = $settings['circles_fillcolor'];
  $getlocations_defaults['circles_fillopacity'] = $settings['circles_fillopacity'];
  $getlocations_defaults['circles_coords'] = $settings['circles_coords'];
  $getlocations_defaults['circles_clickable'] = $settings['circles_clickable'];
  $getlocations_defaults['circles_message'] = $settings['circles_message'];
  $getlocations_defaults['circles_radius'] = $settings['circles_radius'];
  $getlocations_defaults['circles_apply'] = $settings['circles_apply'];
  $getlocations_defaults['polylines_enable'] = $settings['polylines_enable'];
  $getlocations_defaults['polylines_strokecolor'] = $settings['polylines_strokecolor'];
  $getlocations_defaults['polylines_strokeopacity'] = $settings['polylines_strokeopacity'];
  $getlocations_defaults['polylines_strokeweight'] = $settings['polylines_strokeweight'];
  $getlocations_defaults['polylines_coords'] = $settings['polylines_coords'];
  $getlocations_defaults['polylines_clickable'] = $settings['polylines_clickable'];
  $getlocations_defaults['polylines_message'] = $settings['polylines_message'];
  $getlocations_defaults['search_places'] = $settings['search_places'];
  $getlocations_defaults['search_places_size'] = $settings['search_places_size'];
  $getlocations_defaults['search_places_position'] = $settings['search_places_position'];
  $getlocations_defaults['search_places_label'] = $settings['search_places_label'];
  $getlocations_defaults['search_places_placeholder'] = $settings['search_places_placeholder'];
  $getlocations_defaults['search_places_dd'] = $settings['search_places_dd'];
  $getlocations_defaults['search_places_list'] = $settings['search_places_list'];
  $getlocations_defaults['kml_group'] = $settings['kml_group'];
  $getlocations_defaults['geojson_enable'] = $settings['geojson_enable'];
  $getlocations_defaults['geojson_data'] = $settings['geojson_data'];
  $getlocations_defaults['geojson_options'] = $settings['geojson_options'];
  $getlocations_defaults['nokeyboard'] = $settings['nokeyboard'];
  $getlocations_defaults['nodoubleclickzoom'] = $settings['nodoubleclickzoom'];
  $getlocations_defaults['zoomcontrolposition'] = $settings['zoomcontrolposition'];
  $getlocations_defaults['mapcontrolposition'] = $settings['mapcontrolposition'];
  $getlocations_defaults['pancontrolposition'] = $settings['pancontrolposition'];
  $getlocations_defaults['scalecontrolposition'] = $settings['scalecontrolposition'];
  $getlocations_defaults['svcontrolposition'] = $settings['svcontrolposition'];
  $getlocations_defaults['sv_addresscontrol'] = $settings['sv_addresscontrol'];

  // sv overlay controls
  $getlocations_defaults['sv_addresscontrolposition'] = $settings['sv_addresscontrolposition'];
  $getlocations_defaults['sv_pancontrol'] = $settings['sv_pancontrol'];
  $getlocations_defaults['sv_pancontrolposition'] = $settings['sv_pancontrolposition'];
  $getlocations_defaults['sv_zoomcontrol'] = $settings['sv_zoomcontrol'];
  $getlocations_defaults['sv_zoomcontrolposition'] = $settings['sv_zoomcontrolposition'];
  $getlocations_defaults['sv_linkscontrol'] = $settings['sv_linkscontrol'];
  $getlocations_defaults['sv_imagedatecontrol'] = $settings['sv_imagedatecontrol'];
  $getlocations_defaults['sv_scrollwheel'] = $settings['sv_scrollwheel'];
  $getlocations_defaults['sv_clicktogo'] = $settings['sv_clicktogo'];
  $getlocations_defaults['highlight_enable'] = $settings['highlight_enable'];
  $getlocations_defaults['highlight_strokecolor'] = $settings['highlight_strokecolor'];
  $getlocations_defaults['highlight_strokeopacity'] = $settings['highlight_strokeopacity'];
  $getlocations_defaults['highlight_strokeweight'] = $settings['highlight_strokeweight'];
  $getlocations_defaults['highlight_fillcolor'] = $settings['highlight_fillcolor'];
  $getlocations_defaults['highlight_fillopacity'] = $settings['highlight_fillopacity'];
  $getlocations_defaults['highlight_radius'] = $settings['highlight_radius'];
  $getlocations_defaults['getdirections_link'] = $settings['getdirections_link'];
  $getlocations_defaults['show_search_distance'] = $settings['show_search_distance'];
  $getlocations_defaults['views_search_marker_enable'] = $settings['views_search_marker_enable'];
  $getlocations_defaults['views_search_marker'] = $settings['views_search_marker'];
  $getlocations_defaults['views_search_marker_toggle'] = $settings['views_search_marker_toggle'];
  $getlocations_defaults['views_search_marker_toggle_active'] = $settings['views_search_marker_toggle_active'];
  $getlocations_defaults['views_search_radshape_enable'] = $settings['views_search_radshape_enable'];
  $getlocations_defaults['views_search_radshape_strokecolor'] = $settings['views_search_radshape_strokecolor'];
  $getlocations_defaults['views_search_radshape_strokeopacity'] = $settings['views_search_radshape_strokeopacity'];
  $getlocations_defaults['views_search_radshape_strokeweight'] = $settings['views_search_radshape_strokeweight'];
  $getlocations_defaults['views_search_radshape_fillcolor'] = $settings['views_search_radshape_fillcolor'];
  $getlocations_defaults['views_search_radshape_fillopacity'] = $settings['views_search_radshape_fillopacity'];
  $getlocations_defaults['views_search_radshape_toggle'] = $settings['views_search_radshape_toggle'];
  $getlocations_defaults['views_search_radshape_toggle_active'] = $settings['views_search_radshape_toggle_active'];
  $getlocations_defaults['views_search_center'] = $settings['views_search_center'];
  $getlocations_defaults['gps_button'] = $settings['gps_button'];
  $getlocations_defaults['gps_button_label'] = $settings['gps_button_label'];
  $getlocations_defaults['gps_marker'] = $settings['gps_marker'];
  $getlocations_defaults['gps_marker_title'] = $settings['gps_marker_title'];
  $getlocations_defaults['gps_bubble'] = $settings['gps_bubble'];
  $getlocations_defaults['gps_geocode'] = $settings['gps_geocode'];
  $getlocations_defaults['gps_center'] = $settings['gps_center'];
  $getlocations_defaults['gps_type'] = $settings['gps_type'];
  $getlocations_defaults['gps_zoom'] = $settings['gps_zoom'];

  // not ideal but required for preview
  $getlocations_defaults['places'] = 1;

  // onemap
  if ($settings['display_onemap']) {
    $latlons = $lls;
  }
  else {
    $latlons[] = $lls;
  }
  $mapid = getlocations_setup_map($getlocations_defaults);
  getlocations_js_settings_do($getlocations_defaults, $latlons, $minmaxes, $mapid);
  return theme('getlocations_show', array(
    'width' => $settings['display_mapwidth'],
    'height' => $settings['display_mapheight'],
    'defaults' => $getlocations_defaults,
    'mapid' => $mapid,
    'latlons' => $latlons,
    'minmaxes' => $minmaxes,
    'type' => '',
    'node' => '',
  ));
}