fixed save to map to filter by metacode too

This commit is contained in:
Devin Howard 2013-02-22 18:48:01 -05:00
parent b336af1d53
commit 8a9b84c7f3

View file

@ -182,6 +182,11 @@ function saveToMap() {
var nodes_data = "", synapses_data = "";
var synapses_array = new Array();
Mconsole.graph.eachNode(function(n) {
//don't add to the map if it was filtered out
if (categoryVisible[n.getData('metacode')] == false) {
return;
}
var x, y;
if (n.pos.x && n.pos.y) {
x = n.pos.x;