-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up and fix globe with high zoom
- Loading branch information
1 parent
51cb61c
commit 31ad298
Showing
6 changed files
with
286 additions
and
349 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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
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> |
Oops, something went wrong.