Can someone please provide me with some examples of creating spatial data on nodes so that NeoDash will display the locations on the map widget? I already looked at the "Spatial Function" documentation in the Neo4j Cypher Manual, but there weren't clear enough examples for me to understand how it works.
I've tried this Cypher code in NeoDash, but the map and points won't display:
Here is what I see in NeoDash
Cypher
WITH point({x: 2.3, y: 4.5, crs: 'cartesian'}) AS p1, point({x: 1.1, y: 5.4, crs: 'cartesian'}) AS p2
RETURN p1,p2
I hope you are enjoyig your time playing with NeoDash. The Map Chart expects a Node Object with the point as property. However, you can bypass this behavior by creating your own dictionary, you need to include an id and a label property too. We only support WS84 coordinates at the moment. It's in our roadmap improving our Map capabilities. Remember that this is an Open Source project, so you can help us if you please . Something along next lines should work while you test:
UNWIND [{id: "Colosseum", label: "Place", point: point({latitude:41.890209, longitude:12.492231})}] AS p
RETURN p
@bennu_neo , thanks for your response! The Cypher you attached is a helpful example and it works, but not 100%. I still have the issue of no background map behind the node. Any help with this issue?
Let me check. Are you using a standalone deployment or http://neodash.graphapp.io/ ? Are you sitting behind any particular network? Can you tell me if there're network issues on the console log while loading?
I'm currently working in a dashboard on the NeoDash Desktop application with Neo4j Desktop connected to our company's Enterprise edition Neo4j database. Unfortunately I don't really have a ton of IT technical knowledge and I don't understand what you mean by these questions:
Are you sitting behind any particular network? Can you tell me if there're network issues on the console log while loading?
Can you explain in a way hopefully I can understand ?
If you are working from the Desktop, you should click the Menu Developer > Developer Tools
I'm expecting a lot of red messages there. If any, share them. By particular network I mean, are you working from home - like me - or from you workplace office?
@bennu_neo thank you for clarifying. I'm working from the office, and I don't see any red messages in the console network in NeoDash Desktop(see image below)
But I did open up my dashboard in NeoDash on the web app instead of on desktop, and it DOES show the map background. So it seems there is a bug in the NeoDash desktop app, so I would recommend @niels_dejong check out this issue.