% if enable_js == true && scripts.try(:to_sym) != :none %>
<% case map_options.try(:[], :provider) %>
<% when "openlayers" %>
<% when "mapquest" %>
<% when "bing" %>
<% else %>
<% if marker_options.try(:[], :custom_infowindow_class) %>
<% end %>
<% if marker_options.try(:[], :do_clustering) %>
<% end %>
<% if marker_options.try(:[], :rich_marker) %>
<% end %>
<% end %>
<% if Rails::VERSION::MAJOR >= 3 && Rails::VERSION::MINOR < 1 %>
<% unless scripts.try(:to_sym) == :api %>
<%= javascript_include_tag 'gmaps4rails/gmaps4rails.base.js' %>
<% end %>
<% case map_options.try(:[], :provider) %>
<% when "openlayers" %>
<%= javascript_include_tag 'gmaps4rails/gmaps4rails.openlayers.js' %>
<% when "mapquest" %>
<%= javascript_include_tag 'gmaps4rails/gmaps4rails.mapquest.js' %>
<% when "bing" %>
<%= javascript_include_tag 'gmaps4rails/gmaps4rails.bing.js' %>
<% else %>
<%= javascript_include_tag 'gmaps4rails/gmaps4rails.googlemaps.js' %>
<% end %>
<% end %>
<% end %>