This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Overpass, highway nodes visualisation by user and the others with a style.

0

Roads, highway=*, only visualise the nodes, sorted by a user "x" and the others. How to visualise the nodes "user=x" nodes (red) and "the rest" (blue) in overpass.

[bbox:{{bbox}}];
way[highway]->.hw;

node (user:"x")(w.hw);
out;


{{style:
  node {
  color:red;
  fill-color:red;
  symbol-size:3;
  }


}}

Can you help with a good query code and styling code?

asked 21 Feb '22, 14:21

Allroads's gravatar image

Allroads
222161725
accept rate: 10%


One Answer:

0

You're filtering out "the rest" by restricting the returned data with (user:"x")

You need to out the meta data.

[bbox:{{bbox}}];
way[highway];
node(w);
out meta;

{{style:
node{color:blue;fill-color:blue;symbol-size:3;}
node[@user=X] {color:red;fill-color:red;symbol-size:5;}
}}

answered 21 Feb '22, 15:39

DaveF's gravatar image

DaveF
3.3k8498133
accept rate: 16%

Thanks, this is working fine. I was thinking too difficult with the query.

(22 Feb '22, 07:42) Allroads

Source code available on GitHub .