Commit 4215b5a6 authored by Themousaillon's avatar Themousaillon

add url

parent 8097530d
......@@ -314,6 +314,10 @@
"geoLocalisation": "latLong"
},
"additionalFields": [
["url", "regId"]
],
"nodeTypes2": {
"date": {
"labelField": "startDate",
......
......@@ -67,6 +67,13 @@ class QueryEngine {
nodeData["latitude"] = latitude
nodeData["longitude"] = longitude
}
this._dbConnector.settings.additionalFields.forEach(
([fieldNameNode, fieldNameDB]) => {
console.log(fieldNameNode, fieldNameDB, rawNode)
if (rawNode.properties[fieldNameDB])
nodeData[fieldNameNode] = rawNode.properties[fieldNameDB]
}
)
return nodeData
}
......@@ -231,11 +238,7 @@ export class Graph2d {
f("node", node.toObj())
this._currentNodes.add(id)
})
edges.forEach(edge => {
if (!this.isEdgeHidden(edge))
f("edge", edge.toObj())
}
)
edges.forEach(edge => f("edge", edge.toObj()))
//fetch childrens N+2
return this._queryEngine.fetchComponents(params, this.addComponents(f))
......@@ -263,11 +266,7 @@ export class Graph2d {
f("node", node.toObj())
this._currentNodes.add(id)
})
edges.forEach(edge => {
if (!this.isEdgeHidden(edge))
f("edge", edge.toObj())
})
edges.forEach(edge => f("edge", edge.toObj()))
// fetch parents N+2
return this._queryEngine.fetchComponents(params, this.addComponents(f))
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment