Sha256: d2c72d6e212d7777a73f2de7a6757db96a5ac144e10c5e0d9a04f2b27da03b1c

Contents?: true

Size: 966 Bytes

Versions: 8

Compression:

Stored size: 966 Bytes

Contents

<% content_for :head do %>
<%= stylesheet_link_tag 'gmaps4rails' %>
<% 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">
var styles = [{
  url: 'http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclusterer/1.0/images/people35.png',
  height: 35,
  width: 35,
  opt_anchor: [16, 0],
  opt_textColor: '#ff00ff',
  opt_textSize: 10
}];
<% options.each do |key, value| %>
Gmaps4Rails.<%= key %> = <%=raw value.is_a?(String) ?  "'#{value}'" : value  %>;
<% end %>	
var builder = <%=raw options["processing"] == "json" ? builder : "'#{builder}'" %>;
Gmaps4Rails.initialize(builder);
</script>
<% end %>

<div id="map-container"> 
  <div id="gmaps4rails_map"></div> 
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gmaps4rails-0.4.1 app/views/gmaps4rails/_gmaps4rails.html.erb
gmaps4rails-0.4.0 app/views/gmaps4rails/_gmaps4rails.html.erb
gmaps4rails-0.3.0 app/views/gmaps4rails/_gmaps4rails.html.erb
gmaps4rails-0.2.6 app/views/gmaps4rails/_gmaps4rails.html.erb
gmaps4rails-0.2.5 app/views/gmaps4rails/_gmaps4rails.html.erb
gmaps4rails-0.2.3 app/views/gmaps4rails/_gmaps4rails.html.erb
gmaps4rails-0.2.2 app/views/gmaps4rails/_gmaps4rails.html.erb
gmaps4rails-0.2.1 app/views/gmaps4rails/_gmaps4rails.html.erb