diff --git a/src/atlasViewer/atlasViewer.component.ts b/src/atlasViewer/atlasViewer.component.ts index 21b2dc4b021258238fb1e687116f936f20ff9443..c897c231df9f6256bee9abed0629ea797da7d1f2 100644 --- a/src/atlasViewer/atlasViewer.component.ts +++ b/src/atlasViewer/atlasViewer.component.ts @@ -436,6 +436,15 @@ export class AtlasViewer implements OnDestroy, OnInit, AfterViewInit { }) return false } + + if(this.constantsService.mobile){ + this.modalService.show(ModalUnit,{ + initialState: { + title: 'Power and Network Usage warning', + body: this.constantsService.mobileWarning + } + }) + } return true } diff --git a/src/atlasViewer/atlasViewer.constantService.service.ts b/src/atlasViewer/atlasViewer.constantService.service.ts index 84a5de3a9b50500e232f9740bf39e095e11498cb..1e75f9b4186f3304d27a4baba5683b085ab745c7 100644 --- a/src/atlasViewer/atlasViewer.constantService.service.ts +++ b/src/atlasViewer/atlasViewer.constantService.service.ts @@ -90,6 +90,8 @@ Unfortunately, your browser does not meet the minimum requirement to run the atl the atlas viewer requires **webgl2.0**, and the \`EXT_color_buffer_float\` extension enabled ` + public mobileWarning = `It looks like you are on a mobile device. Please note that the atlas viewer is power and network usage intensive.` + get floatingWidgetStartingPos() : [number,number]{ return [400,100] }