How to use the @igo2/core.Media.Mobile 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 / packages / geo / src / lib / map / baselayers-switcher / baselayers-switcher.component.ts View on Github external
constructor(private mediaService: MediaService) {
    const media = this.mediaService.media$.value;
    if (media === Media.Mobile && this.useStaticIcon === undefined) {
      this.useStaticIcon = true;
    }
  }
github infra-geo-ouverte / igo2 / src / app / pages / portal / portal.component.ts View on Github external
isMobile(): boolean {
    return this.mediaService.getMedia() === Media.Mobile;
  }
github infra-geo-ouverte / igo2 / src / app / pages / portal / toast-panel / toast-panel.component.ts View on Github external
isMobile(): boolean {
    return (
      this.mediaService.getMedia() === Media.Mobile
    );
  }
github infra-geo-ouverte / igo2-lib / projects / geo / src / lib / map / baselayers-switcher / baselayers-switcher.component.ts View on Github external
constructor(private mediaService: MediaService) {
    const media = this.mediaService.media$.value;
    if (media === Media.Mobile && this.useStaticIcon === undefined) {
      this.useStaticIcon = true;
    }
  }