cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Rule-Based Styling marker colour in Map

guido
Graph Buddy

Hi,

I am experimenting with maps and have created this sample query (based on @bennu_neo 's example in another post on this forum):

UNWIND [{id: "1234", label: "Test", type: "House", point: point({latitude:51.35934, longitude:4.31582})}] AS p
RETURN p

Works fine. (using the default openstreetmap)
I want to vary the marker colour, based upon the "type"-property.
The following rule, however, does not change anything:
      IF p.type = House THEN Marker color = #e60d0d
What am I doing wrong?
Thanks.

1 ACCEPTED SOLUTION

guido
Graph Buddy

Solved it... (must be my Xmas hangover 😁)
IF Test.type = House THEN Marker color = #e60d0d  does the job!

View solution in original post

1 REPLY 1

guido
Graph Buddy

Solved it... (must be my Xmas hangover 😁)
IF Test.type = House THEN Marker color = #e60d0d  does the job!

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online