-
Notifications
You must be signed in to change notification settings - Fork 0
/
mono.html
41 lines (34 loc) · 1.06 KB
/
mono.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
<!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 crep = new crepuscule.Crepuscule(map);
// map.showTileBoundaries = true;
</script>
</body>
</html>