>
      DC.config.baseUrl = '../libs/dc-sdk/resources/'
      let viewer = new DC.Viewer('viewer-container')
      let baseLayer = DC.ImageryLayerFactory.createAMapImageryLayer({
        style: 'img',
      })
      viewer.addBaseLayer(baseLayer)
      viewer.loadingMask.enable = true

      let controls = {
        enable: true,
      }
      let gui = new dat.GUI()
      gui.add(controls, 'enable').onChange((value) => {
        viewer.loadingMask.enable = value
      })
    </script>
  </body>
</html>
