Sha256: b146c6f39fb865ef9c345095b41162bdf4d4ec0c8c6a814e120589090fb56546

Contents?: true

Size: 959 Bytes

Versions: 5

Compression:

Stored size: 959 Bytes

Contents

<% #thanks to enable_css, user can avoid this css to be loaded
   if enable_css == true %>
	<% content_for :head do %>
	<%= stylesheet_link_tag 'gmaps4rails' %>
	<% end %>
<% end %>

<% content_for :scripts do %>
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src='http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclusterer/1.0/src/markerclusterer.js'></script>
<%=javascript_include_tag 'gmaps4rails' %>
<script type="text/javascript" charset="utf-8">

window.onload = function() {
<% #true is passed here to trigger map initialization %>
<%=raw options.to_gmaps4rails(true) %>
}
</script>
<% end %>

<div id="<%= options["map_options"].nil? || options['map_options']['container_id'].nil? ? "map_container" : options['map_options']['container_id'] %>"> 
  <div id="<%= options["map_options"].nil? || options['map_options']['id'].nil? ? "gmaps4rails_map" : options['map_options']['id'] %>"></div> 
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gmaps4rails-0.6.5 app/views/gmaps4rails/_gmaps4rails.html.erb
gmaps4rails-0.6.4 app/views/gmaps4rails/_gmaps4rails.html.erb
gmaps4rails-0.6.3 app/views/gmaps4rails/_gmaps4rails.html.erb
gmaps4rails-0.6.2 app/views/gmaps4rails/_gmaps4rails.html.erb
gmaps4rails-0.6.1 app/views/gmaps4rails/_gmaps4rails.html.erb