Recent Event Map

<% events = @agent.events.where("lat IS NOT null AND lng IS NOT null").order("id desc").limit(500) %> <% if events.length > 0 %>
<% events.each do |event| %> <%= render "agents/agent_views/user_location_agent/map_marker", :event => event %> <% end %> <% else %>

No events found.

<% end %>