How to use the @igo2/geo.LayerListControlsEnum.never function in @igo2/geo

To help you get started, we’ve selected a few @igo2/geo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github infra-geo-ouverte / igo2-lib / packages / integration / src / lib / map / map-tool / map-tool.component.ts View on Github external
get layerFilterAndSortOptions(): any {
    const filterSortOptions = Object.assign({
      showToolbar: LayerListControlsEnum.default
    }, this.layerListControls);

    switch (this.layerListControls.showToolbar) {
      case LayerListControlsEnum.always:
        filterSortOptions.showToolbar = LayerListControlsEnum.always;
        filterSortOptions.toolbarThreshold = undefined;
        break;
      case LayerListControlsEnum.never:
        filterSortOptions.showToolbar = LayerListControlsEnum.never;
        filterSortOptions.toolbarThreshold = undefined;
        break;
      default:
        break;
    }
    return filterSortOptions;
  }
github infra-geo-ouverte / igo2-lib / projects / tools / src / lib / map-details-tool / map-details-tool.component.ts View on Github external
if (this.options.layerListControls.sortedAlpha) {
        filterSortOptions.sortedAlpha = this.options.layerListControls.sortedAlpha;
      }
      if (this.options.layerListControls.onlyVisible) {
        filterSortOptions.onlyVisible = this.options.layerListControls.onlyVisible;
      }
      if (this.options.layerListControls.onlyInRange) {
        filterSortOptions.onlyInRange = this.options.layerListControls.onlyInRange;
      }
      switch (this.options.layerListControls.showToolbar) {
        case LayerListControlsEnum.always:
          filterSortOptions.showToolbar = LayerListControlsEnum.always,
          filterSortOptions.toolbarThreshold = undefined;
          break;
        case LayerListControlsEnum.never:
          filterSortOptions.showToolbar = LayerListControlsEnum.never,
          filterSortOptions.toolbarThreshold = undefined;
          break;
        default:
          break;
      }
    }
    return filterSortOptions;
  }
github infra-geo-ouverte / igo2-lib / packages / integration / src / lib / map / map-details-tool / map-details-tool.component.ts View on Github external
get layerFilterAndSortOptions(): any {
    const filterSortOptions = Object.assign({
      showToolbar: LayerListControlsEnum.default
    }, this.layerListControls);

    switch (this.layerListControls.showToolbar) {
      case LayerListControlsEnum.always:
        filterSortOptions.showToolbar = LayerListControlsEnum.always;
        filterSortOptions.toolbarThreshold = undefined;
        break;
      case LayerListControlsEnum.never:
        filterSortOptions.showToolbar = LayerListControlsEnum.never;
        filterSortOptions.toolbarThreshold = undefined;
        break;
      default:
        break;
    }
    return filterSortOptions;
  }
}
github infra-geo-ouverte / igo2-lib / projects / tools / src / lib / map-details-tool / map-details-tool.component.ts View on Github external
}
      if (this.options.layerListControls.sortedAlpha) {
        filterSortOptions.sortedAlpha = this.options.layerListControls.sortedAlpha;
      }
      if (this.options.layerListControls.onlyVisible) {
        filterSortOptions.onlyVisible = this.options.layerListControls.onlyVisible;
      }
      if (this.options.layerListControls.onlyInRange) {
        filterSortOptions.onlyInRange = this.options.layerListControls.onlyInRange;
      }
      switch (this.options.layerListControls.showToolbar) {
        case LayerListControlsEnum.always:
          filterSortOptions.showToolbar = LayerListControlsEnum.always,
          filterSortOptions.toolbarThreshold = undefined;
          break;
        case LayerListControlsEnum.never:
          filterSortOptions.showToolbar = LayerListControlsEnum.never,
          filterSortOptions.toolbarThreshold = undefined;
          break;
        default:
          break;
      }
    }
    return filterSortOptions;
  }
github infra-geo-ouverte / igo2-lib / packages / integration / src / lib / map / map-tool / map-tool.component.ts View on Github external
get layerFilterAndSortOptions(): any {
    const filterSortOptions = Object.assign({
      showToolbar: LayerListControlsEnum.default
    }, this.layerListControls);

    switch (this.layerListControls.showToolbar) {
      case LayerListControlsEnum.always:
        filterSortOptions.showToolbar = LayerListControlsEnum.always;
        filterSortOptions.toolbarThreshold = undefined;
        break;
      case LayerListControlsEnum.never:
        filterSortOptions.showToolbar = LayerListControlsEnum.never;
        filterSortOptions.toolbarThreshold = undefined;
        break;
      default:
        break;
    }
    return filterSortOptions;
  }
github infra-geo-ouverte / igo2-lib / packages / integration / src / lib / map / map-details-tool / map-details-tool.component.ts View on Github external
get layerFilterAndSortOptions(): any {
    const filterSortOptions = Object.assign({
      showToolbar: LayerListControlsEnum.default
    }, this.layerListControls);

    switch (this.layerListControls.showToolbar) {
      case LayerListControlsEnum.always:
        filterSortOptions.showToolbar = LayerListControlsEnum.always;
        filterSortOptions.toolbarThreshold = undefined;
        break;
      case LayerListControlsEnum.never:
        filterSortOptions.showToolbar = LayerListControlsEnum.never;
        filterSortOptions.toolbarThreshold = undefined;
        break;
      default:
        break;
    }
    return filterSortOptions;
  }
}