2018-03-05 12:45:36 -05:00
|
|
|
|
2014-07-30 21:10:10 -04:00
|
|
|
|
2018-03-05 12:43:11 -05:00
|
|
|
|
|
|
|
|
2013-01-04 21:39:16 -05:00
|
|
|
<script>
|
2014-08-10 13:06:58 -04:00
|
|
|
Metamaps.currentSection = "map";
|
2018-03-03 21:25:42 -05:00
|
|
|
Metamaps.currentPage = { @map.id.to_s };
|
2016-10-02 21:41:05 +08:00
|
|
|
Metamaps.ServerData = Metamaps.ServerData || {}
|
2018-03-03 21:25:42 -05:00
|
|
|
Metamaps.ServerData.ActiveMap = { @map.to_json.html_safe };
|
|
|
|
Metamaps.ServerData.Mappers = { @allmappers.to_json.html_safe };
|
|
|
|
Metamaps.ServerData.Collaborators = { @allcollaborators.to_json.html_safe };
|
|
|
|
Metamaps.ServerData.Topics = { @alltopics.to_json(user: current_user).html_safe };
|
|
|
|
Metamaps.ServerData.Synapses = { @allsynapses.to_json.html_safe };
|
|
|
|
Metamaps.ServerData.Mappings = { @allmappings.to_json.html_safe };
|
|
|
|
Metamaps.ServerData.Messages = { @allmessages.to_json.html_safe };
|
|
|
|
Metamaps.ServerData.Stars = { @allstars.to_json.html_safe };
|
|
|
|
Metamaps.ServerData.requests = { @allrequests.to_json.html_safe };
|
2016-10-02 22:28:00 +08:00
|
|
|
Metamaps.ServerData.VisualizeType = "ForceDirected";
|
2014-08-02 13:49:51 -04:00
|
|
|
</script>
|