setBearing(bearing++);
      if (!paused) {
        requestAnimationFrame(changeView);
      }
    }

    // changeView();

    map.on('mousemove', e => {
      // console.log(JSON.stringify(layer.identify(e.coordinate)));

    });

    initGUI();

    function updateAmbientLight() {
      if (lights.ambient.resource) {
        lights.ambient.resource = null;
        map.setLights(lights);
      } else {
        lights.ambient.resource = ambientResource;
        map.setLights(lights);
      }

    }

    fu