<%#
# @file
# Code to display a map
# /maps/:id
#%>

<% content_for :title, @map.name + " | Metamaps" %>
<% content_for :mobile_title, @map.name %>
<script>
	Metamaps.currentSection = "map";
	Metamaps.currentPage = <%= @map.id.to_s %>;
    Metamaps.Active.Map = <%= @map.to_json.html_safe %>;
    Metamaps.Mappers = <%= @allmappers.to_json.html_safe %>;
    Metamaps.Collaborators = <%= @allcollaborators.to_json.html_safe %>;
    Metamaps.Topics = <%= @alltopics.to_json(user: current_user).html_safe %>;
    Metamaps.Synapses = <%= @allsynapses.to_json.html_safe %>;
    Metamaps.Mappings = <%= @allmappings.to_json.html_safe %>;
    Metamaps.Messages = <%= @allmessages.to_json.html_safe %>;
    Metamaps.Stars = <%= @allstars.to_json.html_safe %>;
    Metamaps.Visualize.type = "ForceDirected";
</script>
