Skip to content

Commit

Permalink
Add label-text-expression to default style.
Browse files Browse the repository at this point in the history
  • Loading branch information
josephbirkner committed Sep 25, 2024
1 parent d8f420a commit dfcadbc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/styles/default-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ version: 1.0
options:
- label: Show Meshes/Polygons
id: showMesh
default: false
- label: Show Points
id: showPoint
default: true
- label: Show Lines
id: showLine
default: true

rules:
# Normal styles
Expand All @@ -27,7 +24,10 @@ rules:
- geometry: ["point"]
point-merge-grid-cell: [0.000000084, 0.000000084, 0.01]
filter: showPoint
color-expression: "$mergeCount > 1 and 'brown' or 'moccasin'"
color-expression: "$mergeCount > 1 and 'red' or 'moccasin'"
label-text-expression: "$mergeCount > 1 and ($mergeCount as string) or ''"
label-color: black
label-font: "12px Helvetica"
opacity: 1.0
width: 15.0

Expand Down Expand Up @@ -65,4 +65,4 @@ rules:
opacity: 1.0
width: 20.0
mode: selection
offset: [0, 0, 0.1]
offset: [0, 0, 0.1]

0 comments on commit dfcadbc

Please sign in to comment.