2013-01-11 23:49:59 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# Shows a list of all maps, or just a user's maps.
|
|
|
|
# TODO: What url is this accessible at?
|
|
|
|
#%>
|
2013-07-09 16:32:13 +00:00
|
|
|
|
2014-02-05 03:03:24 +00:00
|
|
|
<% content_for :title, "Explore Maps | Metamaps" %>
|
2014-02-10 04:36:23 +00:00
|
|
|
|
|
|
|
<script>
|
2014-08-10 17:06:58 +00:00
|
|
|
<% 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";
|
2014-11-25 20:06:30 +00:00
|
|
|
<% elsif @request == "mapper" %>
|
|
|
|
Metamaps.Maps.Mapper = {
|
|
|
|
models: <%= @maps.to_json.html_safe %>,
|
|
|
|
id: <%= params[:id] %>
|
|
|
|
};
|
|
|
|
Metamaps.currentPage = "mapper";
|
2014-08-10 17:06:58 +00:00
|
|
|
<% end %>
|
|
|
|
Metamaps.currentSection = "explore";
|
|
|
|
Metamaps.GlobalUI.Search.isOpen = true;
|
|
|
|
Metamaps.GlobalUI.Search.lock();
|
2014-02-10 04:36:23 +00:00
|
|
|
</script>
|