How to use the @igo2/common.ActionbarMode.Overlay function in @igo2/common

To help you get started, we’ve selected a few @igo2/common 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 / src / app / pages / portal / toast-panel / toast-panel.component.ts View on Github external
set opened(value: boolean) {
    if (value === this._opened) {
      return;
    }

    this._opened = value;
    this.openedChange.emit(this._opened);
  }
  private _opened = true;

  @Input() zoomAuto = false;

  public icon = 'menu';

  public actionStore = new ActionStore([]);
  public actionbarMode = ActionbarMode.Overlay;

  private multiple$ = new BehaviorSubject(false);
  private isResultSelected$ = new BehaviorSubject(false);
  private initialized = true;

  private format = new olFormatGeoJSON();

  public withZoomButton = true;

  @Output() openedChange = new EventEmitter();
  @Output() zoomAutoEvent = new EventEmitter();

  resultSelected$ = new BehaviorSubject>(undefined);

  @HostBinding('class.app-toast-panel-opened')
  get hasOpenedClass() {
github infra-geo-ouverte / igo2-lib / demo / src / app / common / action / action.component.ts View on Github external
get actionbarMode(): ActionbarMode {
    const media = this.mediaService.media$.value;
    const orientation = this.mediaService.orientation$.value;
    if (media === Media.Desktop && orientation === MediaOrientation.Landscape) {
      return ActionbarMode.Dock;
    }
    return ActionbarMode.Overlay;
  }