overpass-turbo icon indicating copy to clipboard operation
overpass-turbo copied to clipboard

Nodes simply get the last style, even if it doesn't match the text

Open jidanni opened this issue 4 years ago • 2 comments

Here we see nodes simply get the last style (blue), even if it doesn't match the text. 20210509T053214

[out:json][timeout:25];
(
  node["addr:hamlet"="福興里"]["addr:place"~"民化|福民"](24.16229928036421,120.89020729064941,24.16808437679304,120.89774966239928);
);
// print results
out body;
>;
out skel qt;

{{style:
node[addr:neighbourhood=1鄰],
{ color:red; fill-color:red; }
node[addr:neighbourhood=2鄰],
{ color:blue; fill-color:blue; }
node {
    text: addr:housenumber;
  }
}}

jidanni avatar May 08 '21 21:05 jidanni

~~Apparently only stuff that has already been pulled out of the database during the query really is matched on~~. All I know is doing

node[addr:place=民化]
{ color:blue; fill-color:blue; }
node[addr:place=福民]
{ color:red; fill-color:red; }

worked.

jidanni avatar May 08 '21 21:05 jidanni

Wait, this works just fine... https://overpass-turbo.eu/s/177P Maybe a Unicode issue... No, no variant.

jidanni avatar May 08 '21 23:05 jidanni