|
1 | 1 | <html>
|
2 | 2 | <head>
|
3 | 3 | <!-- deck.gl standalone bundle -->
|
4 |
| - <script src="https://unpkg.com/deck.gl@8.9.35/dist.min.js"></script> |
| 4 | + <script src="https://unpkg.com/deck.gl@9.1/dist.min.js"></script> |
5 | 5 | <script src=" https://unpkg.com/[email protected]/dist.min.js" ></script>
|
6 |
| - <script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.1/mapbox-gl.js'></script> |
7 |
| - <link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.1/mapbox-gl.css' rel='stylesheet' /> |
8 | 6 | <style>
|
9 | 7 | body {margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif;}
|
10 | 8 | #geo, #non-geo {position: absolute; width: 50vw; height: 50vh;}
|
|
14 | 12 | z-index: 1;
|
15 | 13 | top: 0;
|
16 | 14 | right: 0;
|
17 |
| - background-color: #FFF; |
| 15 | + background-color: #fff; |
18 | 16 | margin: 24px;
|
19 | 17 | padding: 10px 24px;
|
20 | 18 | box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
|
21 | 19 | min-width: 300px;
|
22 | 20 | }
|
23 |
| - .render-result h3 { font-size: 16px; margin: 8px 0; } |
24 |
| - #re-render { margin-top: 8px; } |
| 21 | + .render-result h3 { |
| 22 | + font-size: 16px; |
| 23 | + margin: 8px 0; |
| 24 | + } |
| 25 | + #re-render { |
| 26 | + margin-top: 8px; |
| 27 | + } |
25 | 28 | #result {
|
26 | 29 | display: none;
|
27 | 30 | }
|
28 | 31 | </style>
|
29 | 32 | </head>
|
30 | 33 | <body>
|
31 |
| - <div id="non-geo" ></div> |
| 34 | + <div id="non-geo"></div> |
32 | 35 | <div class="render-result">
|
33 | 36 | <h3 id="render-status">Rendering video...</h3>
|
34 | 37 | <div id="result">
|
@@ -104,12 +107,14 @@ <h3 id="render-status">Rendering video...</h3>
|
104 | 107 | const nonGeoExample = new deck.DeckGL({
|
105 | 108 | container: document.getElementById('non-geo'),
|
106 | 109 | mapbox: false /* disable map */,
|
107 |
| - views: [new deck.OrbitView()], |
| 110 | + views: new deck.OrbitView({ |
| 111 | + // most video formats don't fully support transparency |
| 112 | + clear: { |
| 113 | + color: [255, 255, 255, 1] |
| 114 | + } |
| 115 | + }), |
108 | 116 | initialViewState: {distance: 1, fov: 50, rotationX: 10, rotationOrbit: 160, zoom: 3.5},
|
109 | 117 | controller: false,
|
110 |
| - parameters: { |
111 |
| - clearColor: [255, 255, 255, 1] |
112 |
| - }, |
113 | 118 | // retina displays will double resolution
|
114 | 119 | useDevicePixels: false
|
115 | 120 | });
|
|
0 commit comments