Added the filter as global js var, I am sorry.
This commit is contained in:
parent
b9e598f883
commit
83ff20b809
|
@ -105,14 +105,8 @@ abstract class Map {
|
|||
<?php
|
||||
echo "var nodes = " . json_encode($this->nodes) . ";";
|
||||
echo "var edges = " . json_encode($this->edges) . ";";
|
||||
echo "var filter = " . json_encode($this->filter) . ";";
|
||||
?>
|
||||
var temp = [];
|
||||
for (var i in nodes) { temp[parseInt(i)] = nodes[i];}
|
||||
nodes = temp;
|
||||
|
||||
temp = [];
|
||||
for (var i in edges) { temp[parseInt(i)] = edges[i];}
|
||||
edges = temp;
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue