-
Notifications
You must be signed in to change notification settings - Fork 0
/
debug.html
47 lines (37 loc) · 1.15 KB
/
debug.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Crepuscule</title>
<script src="https://cdn.maptiler.com/maptiler-sdk-js/v1.1.1/maptiler-sdk.umd.min.js"></script>
<link href="https://cdn.maptiler.com/maptiler-sdk-js/v1.1.1/maptiler-sdk.css" rel="stylesheet" />
<style>
body { margin: 0; padding: 0; font-family: sans-serif; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
#theimg {
z-index: 3;
position: absolute;
}
</style>
</head>
<body>
<div id="map"></div>
<script src="../build/crepuscule.umd.js"></script>
<script>
maptilersdk.config.apiKey = 'Pe7XUGeiOO6SHUcg7baw';
const map = new maptilersdk.Map({
container: 'map', // container's id or the HTML element to render the map
style: maptilersdk.MapStyle.BACKDROP,
hash: true,
maxPitch: 85,
terrainControl: true,
});
const crepusculeLive = new crepuscule.CrepusculeLive(map, {debug: true});
// map.showTileBoundaries = true;
map.on("load", () => {
crepusculeLive.init();
})
</script>
</body>
</html>