-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (50 loc) · 2.59 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<title>camera setter</title>
<link rel="icon" href="assets/camera.svg">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Assistant">
<link rel="stylesheet" href="https://js.arcgis.com/4.18/esri/css/main.css">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.11"></script>
<script src="https://cdn.jsdelivr.net/npm/clipboard@1/dist/clipboard.min.js"></script>
<script src="https://js.arcgis.com/4.18/"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
<script src="js/index.js"></script>
</head>
<body>
<div id="app">
<h2 id="cameraContainer">
<div>
<img src="assets/camera.svg" title="Camera" width="80" height="80">
</div>
<div id="cameraJson">
<div>camera: {</div>
<div> "position": [</div>
<div class="tab"><span id="yValue">{{ camera.position.latitude.toFixed(8) }}</span>,</div>
<div class="tab"><span id="xValue">{{ camera.position.longitude.toFixed(8) }}</span>,</div>
<div class="tab"><span id="altitudeValue">{{ camera.position.z.toFixed(8) }}</span></div>
<div> ],</div>
<div id="headingContainer">
<span> "heading": <span id="headingValue">{{ camera.heading.toFixed(6) }}</span>,</span>
</div>
<div id="tiltContainer">
<span> "tilt": <span id="tiltValue">{{ camera.tilt.toFixed(6) }}</span>,</span>
<div id="fovContainer">
<span> "fov": <span id="fovValue">{{ camera.fov }}</span></span>
</div>
</div>
<div>}</div>
</div>
<button id="copyCamera" data-clipboard-target="#cameraJson">
<img src="assets/copy.svg" title="Copy to Clipboard" width="24" height="24">copy
</button>
<div id="copySuccess">copied to clipboard</div>
</h2>
<div id="map"></div>
</div>
</body>
</html>