<%#
  # @file
  # Shows a list of all maps, or just a user's maps.
  # TODO: What url is this accessible at?
  #%>
  
<% content_for :title, "Explore Maps | Metamaps" %>

<script>
    <% if @request == "active" %>
      Metamaps.Maps.Active = <%= @maps.to_json.html_safe %>;
      Metamaps.currentPage = "active";
    <% elsif @request == "featured" %>
      Metamaps.Maps.Featured = <%= @maps.to_json.html_safe %>;
      Metamaps.currentPage = "featured";
    <% end %>
    Metamaps.currentSection = "explore";
    Metamaps.GlobalUI.Search.isOpen = true;
    Metamaps.GlobalUI.Search.lock();
</script>