Aller au contenu principal

Defining Labels in Show Results to show in Results list at VertiGIS Studio Web

Commentaires

2 commentaires

  • Andreas Broothaerts

    HI Michael Nowak where you ever able to work out the first part? with the conditional statements? 

     

    0
  • Michael Nowak

    Hi Andreas,

    you can not use this in the label format field at the show results activity. That info I got from Support consultant.

    With that VertiGIS support consultant we created an evaluate expression activity which defines the label for each feature. This output of this is defined as expression in the show results labels.

    the evaluate expression looks like this:

     

    =((features) => {
     for (i = 0; i < features.length; i++) {
       const label = (features[i].attributes.B === undefined || features[i].attributes.B === null) ?
           `Text: ${features[i].attributes.A}` :
           `Text: ${features[i].attributes.A}/${features[i].attributes.B}`;
       features[i].attributes.TEXTLABEL = label;
     }
    })($query.features)

     

    at show results activity the label format looks like this:

    ='{TEXTLABEL}'

    0

Vous devez vous connecter pour laisser un commentaire.