g = swim.Easing.cubicOut.withDuration(250);

const bodyView = swim.HtmlView.fromNode(document.body);

require([
    "esri/Map",
    "esri/views/MapView",
    "esri/views/SceneView",
  ], function(EsriMap, EsriMapView, EsriSceneView) {

  const esriMap = new EsriMap({
    basemap: "dark-gray-vector",
  });
  const esriMapView = new EsriMapView({
    container: bodyView.node,
    map: esriMap,
    center: [-122.157139, 37.450809],
    zoom: 14,
    rotation: -160,
  });
  const mapView = new swim.EsriMapView(