Skip to content

Instantly share code, notes, and snippets.

@tdurand
Last active April 24, 2019 19:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tdurand/5dda31dd03d0a561cccb8a9af1a85cb2 to your computer and use it in GitHub Desktop.
GLTF viewer of maps3d.io
<html>
<head>
<title>Model Viewer - Google</title>
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.js"></script>
<script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script>
<style>
html, body {
font-family: sans-serif;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<model-viewer
src="/static/demo/valley_montblanc.glb"
alt="A 3D map of mont blanc valley"
auto-rotate
camera-controls
background-color="#455A64"
style="width:100%;height:100%"
>
</model-viewer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment