diff --git a/app.js b/app.js index 1d92be7..3797897 100644 --- a/app.js +++ b/app.js @@ -28,6 +28,7 @@ require([ "./modules/goToLocation.js", "esri/widgets/Measurement", + "./modules/mediaQuery.js" ], ( Conversion, @@ -50,11 +51,15 @@ require([ initLegend, initELevation, goToLocation, - Measurement + Measurement, + initMediaQuery ) => { /************************************************************ * Init scene (/w layers) and view ************************************************************/ + // const mediaQuery = window.matchMedia('(max-width: 768px)'); + // initMediaQuery.handleMediaQueryChange(mediaQuery) + // mediaQuery.addEventListener(initMediaQuery.handleMediaQueryChange); const graphicsLayer = initLayers.setupGraphicsLayer(); @@ -81,10 +86,15 @@ require([ const view = initScene.setupWebView(scene); + + /************************************** * Adding a layer group, expand **************************************/ view.when(() => { + // Media query + + // Going to specified location at runtime const locationArray = goToLocation.getLocation(); diff --git a/index.html b/index.html index f1862ad..24f1a21 100644 --- a/index.html +++ b/index.html @@ -33,7 +33,7 @@