How to use the @igo2/geo.LayerListControlsEnum.default 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-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 / 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
get layerFilterAndSortOptions(): any {

    const filterSortOptions = {
      showToolbar: LayerListControlsEnum.default,
      toolbarThreshold: undefined,
      keyword: undefined,
      sortedAlpha: undefined,
      onlyVisible: undefined,
      onlyInRange: undefined,
    };

    if (this.options && this.options.layerListControls) {
      if (this.options.layerListControls.toolbarThreshold) {
        filterSortOptions.toolbarThreshold = this.options.layerListControls.toolbarThreshold;
      }
      if (this.options.layerListControls.keyword) {
        filterSortOptions.keyword = this.options.layerListControls.keyword;
      }
      if (this.options.layerListControls.sortedAlpha) {
        filterSortOptions.sortedAlpha = this.options.layerListControls.sortedAlpha;