Last active
April 24, 2019 19:57
-
-
Save tdurand/5dda31dd03d0a561cccb8a9af1a85cb2 to your computer and use it in GitHub Desktop.
GLTF viewer of maps3d.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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