/**
  * Add header attributes for map view
  *
  * @return string
  **/
 public function header_attributes($attrs)
 {
     $attrs['data-startofweek'] = get_option('start_of_week');
     $attrs['data-view'] = 'map';
     $attrs['data-baseurl'] = tribe_get_mapview_link();
     return apply_filters('tribe_events_pro_header_attributes', $attrs);
 }
 /**
  * Add the Map View to the view switcher in the Tribe Bar
  * @param $views
  *
  * @return array
  */
 public function setup_view_for_bar($views)
 {
     $views[] = array('displaying' => 'map', 'event_bar_hook' => 'tribe_events_list_the_title', 'anchor' => __('Map', 'tribe-events-calendar-pro'), 'url' => tribe_get_mapview_link());
     return $views;
 }