-
Notifications
You must be signed in to change notification settings - Fork 3
/
remote.html
53 lines (43 loc) · 1.39 KB
/
remote.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
48
49
50
51
52
53
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
<style>
body
{
margin: 0;
}
</style>
</head>
<body>
<div id="container"></div>
<link rel="stylesheet" type="text/css" href="https://api.mapbox.com/mapbox-gl-js/v2.1.1/mapbox-gl.css" />
<script src="https://maps.googleapis.com/maps/api/js?key=***KEY***"></script>
<script src="https://unpkg.com/deck.gl@^8.0.0/dist.min.js"></script>
<script src="https://api.mapbox.com/mapbox-gl-js/v2.1.1/mapbox-gl.js"></script>
<script src="../libs/jquery/jquery-3.3.1.min.js"></script>
<script src="../libs/three/three.min.js"></script>
<script src="../libs/three/OrbitControls.js"></script>
<script src="../libs/jszip/jszip.min.js"></script>
<script src="../libs/luxon/luxon.min.js"></script>
<script src="../src/track_viewer.js"></script>
<script>
$(function()
{
trackViewer.init( { mapBoxAccessToken: '***KEY***',
googleMapsKey: '***KEY***',
domContainer: $('#container')[0],
dotImageLight: 'images/dotlight.png',
dotImageHeavy: 'images/dotheavy.png',
spacingRight: 0,
});
trackViewer.load('***URL***',{ style: trackViewer.style3DMapboxStreetMap,
elevation: trackViewer.elevationFromMap,
useLines: true,
useDots: false
});
});
</script>
</body>
</html>