populate() {
    this.selectOptions = [];
    Object.entries(lines).forEach(([label, { property, shortname }]) => {
      if (property !== this.property) {
        return;
      }
      if (this.selectOptions.indexOf(label) === -1) {
        this.selectOptions.push(label);
        this.icons[label] = shortname
          ? `${this.staticFilesUrl}/img/layers/zweitausbildung/${shortname}.png`
          : null;
      }
    });
    this.selectOptions = this.selectOptions.sort((a, b) => a.localeCompare(b));
    this.selectOptions.unshift('Alle');
  }
/**
   * Add options to the select box.
   */
Add options to the select box.
Add options to the select box .
populate() {
    this.selectOptions = [];
    Object.entries(lines).forEach(([label, { property, shortname }]) => {
      if (property !== this.property) {
        return;
      }
      if (this.selectOptions.indexOf(label) === -1) {
        this.selectOptions.push(label);
        this.icons[label] = shortname
          ? `${this.staticFilesUrl}/img/layers/zweitausbildung/${shortname}.png`
          : null;
      }
    });
    this.selectOptions = this.selectOptions.sort((a, b) => a.localeCompare(b));
    this.selectOptions.unshift('Alle');
  }
populate ( ) { this . selectOptions = [ ] ; Object . entries ( lines ) . forEach ( ( [ label , { property , shortname } ] ) => { if ( property !== this . property ) { return ; } if ( this . selectOptions . indexOf ( label ) === - 1 ) { this . selectOptions . push ( label ) ; this . icons [ label ] = shortname ? ` ${ this . staticFilesUrl } ${ shortname } ` : null ; } } ) ; this . selectOptions = this . selectOptions . sort ( ( a , b ) => a . localeCompare ( b ) ) ; this . selectOptions . unshift ( 'Alle' ) ; }
Add options to the select box.
Add options to the select box .