Changes between Version 3 and Version 4 of Styles/MapillaryDetections


Ignore:
Timestamp:
2022-08-16T16:24:15+02:00 (2 years ago)
Author:
taylor.smock
Comment:

Add magenta halo, fix semantics of setting

Legend:

Unmodified
Added
Removed
Modified
  • Styles/MapillaryDetections

    v3 v4  
    3333setting::show_detection_value {
    3434    type: boolean;
    35     label: tr("Show detection values for detections with no known specific image");
     35    label: tr("Show detection values (zoom dependent)");
    3636    default: true;
    3737}
     
    4343}
    4444
     45setting::halo_color {
     46    type: color;
     47    label: tr("Mapillary Object Detections Halo Color");
     48    default: mapillaryPointObjectHaloColor#C80BC7;
     49}
     50
     51
    4552node|z20-[setting("show_accuracy_circles")][accuracy > 10]::mapillary_object_layer {
    4653    symbol-shape: circle;
     
    5057    symbol-stroke-color: orange;
    5158}
     59
    5260node|z20-[setting("show_accuracy_circles")][accuracy <= 10][accuracy > 5]::mapillary_object_layer {
    5361    symbol-shape: circle;
     
    5765    symbol-stroke-color: yellow;
    5866}
     67
    5968node|z20-[setting("show_accuracy_circles")][accuracy <= 5]::mapillary_object_layer {
    6069    symbol-shape: circle;
     
    6473    symbol-stroke-color: green;
    6574}
    66 node[layer=traffic_sign][value!~/^(object--traffic-(sign|light)--(|direction-|general-upright-|pedestrians-)(front|back|side))$/] {
     75
     76node[layer=traffic_sign] {
    6777    imagepath: "package_signs";
    6878}
     79
    6980node[layer=point] {
    7081    imagepath: "package_objects";
     
    110121}
    111122
    112 node|z18-[value][is_prop_set(noimage)] {
     123node|z18-[value][!setting(hide_detections_with_no_known_image)][is_prop_set(noimage)] {
    113124    symbol-shape: square;
    114125    symbol-fill-color: white;
     
    116127}
    117128
    118 node|z20-[value][is_prop_set(noimage)][setting("show_detection_value")],
     129node|z18-[value][setting(hide_detections_with_no_known_image)][is_prop_set(noimage)] {
     130    symbol-shape: square;
     131    symbol-size: 1;
     132    symbol-fill-opacity: 0;
     133}
     134
     135node|z20-[value][is_prop_set(noimage)][setting("show_detection_value")][!setting(hide_detections_with_no_known_image)],
    119136node|z24-[value][setting("show_detection_value")] {
    120137    text: value;
     
    127144    symbol-stroke-opacity: 0.7;
    128145}
     146
     147node|z18-[value][!is_prop_set(noimage, default)]::magenta,
     148node|z18-[value][is_prop_set(noimage, default)][!setting(hide_detections_with_no_known_image)]::magenta {
     149    symbol-shape: circle;
     150    symbol-fill-color: setting(halo_color);
     151    symbol-fill-opacity: 0.25;
     152    symbol-size: 28;
     153}
    129154}}}