How to programatically change a view's style_options when user clicking the exposed filter apply button?
The hook_views_pre_render() works.

function my_misc_views_pre_render(&amp;$view) {
  if($view-&gt;name == 'classrooms_map') {
    $view-&gt;style_plugin-&gt;options['map'] = ($view-&gt;exposed_data['type'] == 'All') ? 'all' : $view-&gt;exposed_data['type'];
  }
}