NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%


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;}
}}
permanent link

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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×483

question asked: 21 Feb '22, 14:21

question was seen: 1,364 times

last updated: 22 Feb '22, 10:17

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum