DroneDeploy
Search…
CadOverlay.import

Without given ID

1
<!DOCTYPE html>
2
<html lang="en">
3
4
<head>
5
<meta charset="UTF-8">
6
<title>Document</title>
7
</head>
8
9
<body>
10
<h3 class="title sans">CadOverlay.import example</h3>
11
<span id="cadoverlay"></span>
12
<script>
13
const url = 'https://blog.mozilla.org/security/files/2015/05/HTTPS-FAQ.pdf';
14
const name = 'Without ID';
15
16
new DroneDeploy({
17
version: 1
18
})
19
.then(function(dronedeployApi) {
20
return dronedeployApi.CadOverlay.import(url, {}, name);
21
});
22
</script>
23
</body>
24
25
</html>
Copied!

With previously prepared ID

1
<!DOCTYPE html>
2
<html lang="en">
3
4
<head>
5
<meta charset="UTF-8">
6
<title>Document</title>
7
</head>
8
9
<body>
10
<h3 class="title sans">CadOverlay.import example</h3>
11
<span id="cadoverlay"></span>
12
<script>
13
const url = 'https://blog.mozilla.org/security/files/2015/05/HTTPS-FAQ.pdf';
14
const name = 'With ID';
15
16
new DroneDeploy({
17
version: 1
18
})
19
.then(function(dronedeployApi) {
20
return Promise.all([dronedeployApi, dronedeployApi.CadOverlay.prepare()]);
21
})
22
.then(function([dronedeployApi, id]) {
23
return dronedeployApi.CadOverlay.import(url, {}, name, id);
24
});
25
</script>
26
</body>
27
28
</html>
Copied!
Last modified 2yr ago