How to use the @igo2/core.MediaOrientation.Landscape function in @igo2/core

To help you get started, we’ve selected a few @igo2/core 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 / 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;
  }
github infra-geo-ouverte / igo2 / src / app / pages / portal / portal.component.ts View on Github external
isLandscape(): boolean {
    return this.mediaService.getOrientation() === MediaOrientation.Landscape;
  }