diff --git a/frontend/app/filter/filter-dialog.css b/frontend/app/filter/filter-dialog.css new file mode 100644 index 00000000..0ce41ffa --- /dev/null +++ b/frontend/app/filter/filter-dialog.css @@ -0,0 +1,5 @@ +.alert pre { + border: none; + padding: 0; + background: transparent; +} \ No newline at end of file diff --git a/frontend/app/filter/filter-dialog.html b/frontend/app/filter/filter-dialog.html new file mode 100644 index 00000000..f7a26da4 --- /dev/null +++ b/frontend/app/filter/filter-dialog.html @@ -0,0 +1,183 @@ +
Variable | +Description | +Example | +
---|---|---|
name |
+ Marker/Line name | +name == "Berlin" |
+
type |
+ marker / line |
+ type == "marker" |
+
typeId |
+ / {{type.id}} ({{type.name}}) |
+ typeId == 1 |
+
data.<field> / prop(data, <field>) |
+ Field values (example: data.Description or prop(data, "Description") |
+ data.Description ~= "camp" |
+
lat , lon |
+ Marker coordinates | +lat < 50 |
+
colour |
+ Marker/line colour | +colour == "ff0000" |
+
size |
+ Marker size | +size > 30 |
+
symbol |
+ Marker icon | +symbol == "accommodation_camping" |
+
mode |
+ Line routing mode (empty / car / bicycle / pedestrian / track ) |
+ mode in ("bicycle", "pedestrian") |
+
width |
+ Line width | +width > 10 |
+
distance |
+ Line distance in kilometers | +distance < 50 |
+
time |
+ Line routing time in seconds | +time > 3600 |
+
routePoints |
+ Line point coordinates | +routePoints.0.lon > 60 and routePoints.2.lat < 50 |
+
Operator | +Description | +Example | +
number |
+ Numerical value | +distance < 1.5 |
+
"text" |
+ Text value | +name == "Athens" |
+
+ , - , * , / , % , ^ |
+ Mathematical operations (% : modulo, ^ : power) |
+ distance / time > 30 |
+
and , or , not , () |
+ Logical operators | +not (size>10) or (type=="line" and length<=10) |
+
? : |
+ if/then/else operator | +(type=="marker" ? size : width) > 10 |
+
== , != , < , <= , > , >= |
+ Comparison (!= : not equal) (case sensitive) |
+ type != "marker" |
+
in , not in |
+ List operator (case sensitive) | +typeId not in (1,2) |
+
~= |
+ Regular expression match (case sensitive) | +name ~= "^[Cc]amp$" |
+
ceil() , floor() , round() |
+ Round (ceil : up, floor : down) |
+ floor(distance/100) == 5 |
+
abs() , log() , sqrt() |
+ Mathematical functions | +abs(lat) < 30 |
+
min() , max() |
+ Smallest/highest value | +min(routePoints.0.lat,routePoints.1.lat) < 50 |
+