[Overpass - Turbo] {{style:

Mittlerweile nutze ich die style-Option intensiv. Nun habe ich ein Problem, welches ich noch nicht in den Griff bekommen habe. Mit TAGs als Auswahlelement klappt alles.

{{style:

node[shop]
{ color:green; fill-color:green; }

node[amenity=post_box]
{ color:yellow; fill-color:yellow; }

node[amenity=fast_food]
{ color:red; fill-color:blue; }

node[amenity=restaurant]
{ color:red; fill-color:gray; }

node[amenity=post_office]
{ color:black; fill-color:yellow;  }

node[amenity=fuel]
{ color:blue; fill-color:red; }
      
}}

Wie bekomme ich aber Meta-Daten in die Auswahl. Z.B. möchte ich Nodes farblich kennzeichnen, welchen von bestimmten Usern geändert wurden. Mit

node[
{ color:red; fill-color:gray; }

klappt es bei mir nicht.](https://forum.openstreetmap.org/profile.php?id=)

https://wiki.openstreetmap.org/wiki/Overpass_turbo/MapCSS

vielleicht … node[@user=Wetterauer]

so sollte es gehen:


(
  node[...]({{bbox}});
  convert node ::id=id(), user=user();
);
out geom;
  
{{style:
node[user=Wetterauer]
{
  color:red;
  text:user;
}
}}


Sprich du packst die Meta-Daten in ein Attribut.

@…Meta Attribut ist schon richtig: https://overpass-turbo.eu/s/1fB5

convert braucht es dafür nicht unbedingt.

Danke

Das @ war der Schlüssel für mein Problem.

:smiley:

Komisch, @user wollte bei mir irgendwie nicht… jetzt schon, hab dann wohl irgendwas vertippt gehabt und daher dachte ich als Behelf halt convert :wink: