Skip to content

Commit

Permalink
Clean up and fix globe with high zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
sebstryczek committed Nov 27, 2024
1 parent 51cb61c commit 31ad298
Show file tree
Hide file tree
Showing 6 changed files with 286 additions and 349 deletions.
Binary file added demos/models/position-indicator--y-up.glb
Binary file not shown.
Binary file added demos/models/position-indicator--z-up.glb
Binary file not shown.
75 changes: 45 additions & 30 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,36 +1,51 @@
<!DOCTYPE html>
<html>
<head>
<title>MapTiler 3D Models</title>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<!-- <script src="https://cdn.maptiler.com/maptiler-sdk-js/v2.4.2/maptiler-sdk.umd.min.js"></script>
<link href="https://cdn.maptiler.com/maptiler-sdk-js/v2.4.2/maptiler-sdk.css" rel="stylesheet" /> -->
<style>
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
<head>
<title>MapTiler 3D Models</title>
<meta charset="utf-8" />
<meta
name="viewport"
content="initial-scale=1,maximum-scale=1,user-scalable=no"
/>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://mrdoob.github.io/stats.js/build/stats.min.js"></script>
<script>
window.addEventListener("load", () => {
const stats = new Stats();
stats.dom.style.left = "unset";
stats.dom.style.right = 0;
document.body.appendChild(stats.dom);
requestAnimationFrame(function loop(){
stats.update();
requestAnimationFrame(loop)
});
});
</script>
<style>
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}

#map {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
}
#map {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
/* width: 800px;
height: 600px; */
}

.lil-gui.autoPlace {
right: inherit;
left: 15px;
}
.lil-gui.autoPlace {
right: inherit;
left: 15px;
}
</style>
</head>

</style>
</head>

<body>
<div id="map"></div>
<script type="module" src="src/example.ts"></script>
</body>
<body>
<div id="map"></div>
<script type="module" src="src/example.ts"></script>
</body>
</html>
Loading

0 comments on commit 31ad298

Please sign in to comment.