Cesium is an open-source JavaScript library for visualizing 3D globes and maps.

See also the full Cesium API Specification

Examine the sample code and use the buttons in the top-right corner to copy the code or edit in jsFiddle:

<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
    <script src="https://cesiumjs.org/releases/1.44/Build/Cesium/Cesium.js"></script>
    <style>
      @import url(https://cesiumjs.org/releases/1.44/Build/Cesium/Widgets/widgets.css);
      #cesiumContainer {position: absolute; top: 0; right: 0; bottom: 0; left: 0;}
    </style>
  </head>
  <body>
    <div id="cesiumContainer"></div>
    <script>
    var viewer = new Cesium.Viewer('cesiumContainer', {
      animation: false,
      baseLayerPicker: false,
      navigationHelpButton: false,
      sceneModePicker: false,
      homeButton: false,
      geocoder: false,
      fullscreenButton: false,
      imageryProvider: new Cesium.UrlTemplateImageryProvider({
        url: 'https://api.maptiler.com/tiles/satellite/{z}/{x}/{y}.jpg?key=get_your_own_key_rSw2Lu595oi7U6WngsFQ',
        minimumLevel: 0,
        maximumLevel: 20,
        credit: new Cesium.Credit('<a href="https://www.maptiler.com/copyright/" target="_blank">© MapTiler</a> <a href="https://www.openstreetmap.org/copyright" target="_blank">© OpenStreetMap contributors</a>', true)
      }),
      timeline: false,
      terrainProvider: new Cesium.CesiumTerrainProvider({
        url: 'https://api.maptiler.com/tiles/terrain-quantized-mesh/?key=get_your_own_key_rSw2Lu595oi7U6WngsFQ',
        credit: new Cesium.Credit('<a href="https://www.maptiler.com/copyright/" target="_blank">© MapTiler</a> <a href="https://www.openstreetmap.org/copyright" target="_blank">© OpenStreetMap contributors</a>', true),
        requestVertexNormals: true
      })
    });
    viewer.camera.setView({
      destination: Cesium.Cartesian3.fromDegrees(8.67, 46.72, 4300),
      orientation: {
        pitch: Cesium.Math.toRadians(-20)
      }
    });
    </script>
  </body>
</html>

Attribution

© MapTiler © OpenStreetMap contributors