Listing users

<% @users.each_with_index do |user, index| %> <% break if index == 5 %> <% end %>
Name Address Latitude Longitude Gmaps
<%= user.name %> <%= user.address %> <%= user.latitude %> <%= user.longitude %> <%= user.gmaps %> <%= link_to 'Show', user %> <%= link_to 'Edit', edit_user_path(user) %> <%= link_to 'Destroy', user, :confirm => 'Are you sure?', :method => :delete %>

<%= link_to 'New User', new_user_path %> <%#= gmaps({"markers" => {"data" => @json }, "map_options" => { :provider => "openlayers"}}) %> <%#= gmaps({}) %> <%#= gmaps({ :map_options => { # :auto_adjust => false, :center_on_user => true, :zoom => 3, :raw => '{ scrollwheel: false }', :center_latitude => 41.574361, :center_longitude => -72.949219, :libraries => ["places"] } }) %> <%#= gmaps( :map_options => {:auto_adjust=>true, :auto_zoom=>true}, :markers => {:data=>"[{\"lat\":43.5368851,\"lng\":-79.6849913}]"}, :circles => {:data=>"[{\"lng\":-79.6849913,\"lat\":43.5368851,\"radius\":5000.0,\"strokeColor\":\"#DD3300\"}]", :options=>{:fillOpacity=>0.35}} ) %> <%#= gmaps4rails(@json) %> <%#= gmaps(:markers => {:data => @json}, :map_options => { :detect_location => true, :auto_zoom => false, :zoom => 15, :auto_adjust => true, :center_on_user => true}) %> <%#= gmaps(:map_options => { :auto_adjust => true }, :markers => { :data => @json, :options => {:do_clustering => true} }) %> <%#= gmaps("markers" => { "data" => @json, "options" => { "picture" => "/logo.png", "width" => 30, "marker_length" => 32 } }) %> <%#= gmaps( {:map_options => { :disableDefaultUI => true, :auto_adjust => true, :center_on_user => true, :detect_location => true, :center_latitude => 41.574361, :center_longitude => -72.949219 }}) %> <%#= gmaps(:map_options => {:type => "ROADMAP"}, :markers => {:data => @json, :options => {"list_container" => "markers_list" } })%>
<%= gmaps(:markers => {:data => @json}, :map_options => {:auto_adjust => false, :bounds => '[{"lat":42.3124,"lng":-71.1712},{"lat":42.3997,"lng":-71.0531}]', :auto_zoom => false }) %> <%#= gmaps(:markers => {:data => @json, :options => {:do_clustering => false, "custom_infowindow_class" => "yellow", :raw => "{ flat: true, draggable: true}" } }, :polygons => {:data => '[[ {"lng": 5.190262, "lat": 25.774252}, {"lng": 7.118292, "lat": 45.466465}, {"lng": 4.75737, "lat": 53.321384} ]]'}, "circles" => { "data" => '[ {"lng": -122.214897, "lat": 37.772323, "radius": 1000000}, {"lng": 122.214897, "lat": 37.772323, "radius": 1000000, "strokeColor": "#FF0000"} ]'}, "polylines" => { "data" => '[[ {"lng": -122.214897, "lat": 37.772323}, {"lng": -157.821856, "lat": 21.291982}, {"lng": 178.431, "lat": -18.142599}, {"lng": 153.027892, "lat": -27.46758} ], [ {"lng": -120.214897, "lat": 30.772323, "strokeColor": "#000", "strokeWeight" : 2 }, {"lng": -10.821856, "lat": 50.291982} ]]' }, :map_options => {:auto_adjust => true, :auto_zoom => false, :zoom => 3, :center_on_user => false, :detect_location => false, :raw => "{styles: pinkParksStyles}" }, :last_map => true) %> <%#= gmaps(:markers => {:data => '[{ "lng": "5.9311119", "lat": "43.1251606"} ,{ "lng": "2.3509871", "lat": "48.8566667" },{ "lng": "0", "lat": "0" } ]', "options" => {"do_clustering" => true, "draggable" => true } }, :map_options => { :auto_adjust => true, :center_on_user => true, :zoom => 5, :id => "ed" }, :scripts => "api", :last_map => false ) %> <%#= gmaps(:markers => {:data => @json, :options => {:do_clustering => false, :draggable => true } }, :map_options => { :auto_adjust => true, :center_on_user => true, :zoom => 5, :provider => "openlayers", :id => "joe" }, :scripts => "api", :last_map => false ) %> <%#= gmaps(:markers => {:data => @json, :options => {:do_clustering => false, :draggable => true } }, :map_options => { :auto_adjust => true, :center_on_user => true, :zoom => 5, :id => "joe3", :provider => "mapquest", :provider_key => MAPQUEST_KEY }, :scripts => "api", :last_map => false ) %> <%#= gmaps(:markers => {"data" => @json, :options => {:do_clustering => false, :draggable => true } }, :map_options => { :auto_adjust => true, :center_on_user => true, :zoom => 5, :id => "joe2", :provider => "bing", :provider_key => BING_KEY }, :scripts => "api" ) %> <%#= gmaps({ "map_options" => { "auto_adjust" => false, "zoom" => 0, "libraries" => ["places"] }, "markers" => { "data" => @json } }, true, true) %> <%# @circles_json = '[ {"lng": -122.214897, "lat": 37.772323, "radius": 1000000} ]' %> <%#= gmaps( "circles" => { "data" => @circles_json } , "map_options" => { "auto_adjust" => true } ) %> <% content_for :scripts do -%> <% end -%>