DroneDeploy
Search…
Exporter.getSelectedAutoExportParams
1
<!DOCTYPE html>
2
<html lang="en">
3
4
<head>
5
<meta charset="UTF-8">
6
<title>Document</title>
7
<style>
8
body { display: grid; }
9
.title {
10
font-size: 1.1em;
11
font-weight: 500;
12
}
13
14
.sans {
15
font-family: Lato, sans-serif;
16
color: rgba(0, 0, 0, 0.87);
17
text-align: center;
18
}
19
20
.btn {
21
border: none;
22
background-color: #039be5;
23
font-size: 14px;
24
font-family: Lato;
25
font-weight: 500;
26
color: white;
27
padding: 10px 16px;
28
margin-top: 10px;
29
flex-basis: 100%;
30
width: 100%;
31
}
32
#autoExportParams {
33
padding-top: 10px;
34
}
35
.exportValue {
36
font-family: Lato, sans-serif;
37
color: rgba(0, 0, 0, 0.87);
38
}
39
</style>
40
</head>
41
42
<body>
43
<h1 class="title sans">Export.getSelectedAutoExportParams example</h1>
44
<button type="button" id="export" class="btn">Get Auto Export Params</button>
45
<div id="autoExportParams" class="params">
46
47
</div>
48
<script>
49
var paramsBtn = document.getElementById('export');
50
var paramsDiv = document.getElementById('autoExportParams');
51
52
new DroneDeploy({
53
version: 1
54
})
55
.then(function(dronedeployApi) {
56
paramsBtn.addEventListener('click', function(event) {
57
event.preventDefault();
58
59
dronedeployApi.Exporter.getSelectedAutoExportParams()
60
.then(function(autoExportParams) {
61
paramsDiv.innerHTML = `<p class=exportValue>Auto Export Params: fileFormat = ${autoExportParams.fileFormat}</p>`
62
});
63
});
64
});
65
</script>
66
</body>
67
68
</html>
Copied!
Last modified 2yr ago
Copy link