@@ -11,7 +11,9 @@ export const sketchControlPoint = {
1111
1212export const trackLine = {
1313 "stroke-width" : 6 ,
14- "stroke-color" : "purple" ,
14+ "stroke-color" : [ "case" , [ "==" , [ "get" , "active" ] , false ] , "#00883c80" , "#00883cff" ] ,
15+ "text-value" : [ "concat" , "" , [ "get" , "part" ] ] ,
16+ "text-fill-color" : "#fff" ,
1517} ;
1618
1719export const trackLineModifying = {
@@ -27,25 +29,25 @@ export const poiPoint = {
2729 "text-font" : "bold 11px Inter" ,
2830 "text-fill-color" : "#000" ,
2931 // use 'concat' to convert number to string
30- "text-value" : [ "concat" , [ "get ", "index" ] , "" ] ,
32+ "text-value" : [ "concat" , " ", [ "get" , "part" ] ] ,
3133} ;
3234
3335export const numberedControlPoint = {
3436 ...controlPoint ,
3537 "circle-fill-color" : "#ffffffdd" ,
3638 "text-color" : "blue" ,
3739 // use 'concat' to convert number to string
38- "text-value" : [ "concat" , [ "get ", "index" ] , "" ] ,
40+ "text-value" : [ "concat" , " ", [ "get" , "part" ] ] ,
3941} ;
4042
4143export const snappedTrue = {
4244 ...controlPoint ,
43- "circle-fill-color" : "green" ,
45+ "circle-fill-color" : [ "case" , [ "==" , [ "get" , "active" ] , false ] , "#0071ec80" , "#0071ecff" ] ,
4446} ;
4547
4648export const snappedFalse = {
4749 ...controlPoint ,
48- "circle-fill-color" : "red" ,
50+ "circle-fill-color" : [ "case" , [ "==" , [ "get" , "active" ] , false ] , "#b45f0480" , "#b45f04ff" ] ,
4951} ;
5052
5153export const sketchLabel = {
0 commit comments