Skip to content

Commit

Permalink
update data for 3D tiles example
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhuang01 committed Sep 16, 2019
1 parent cc598f4 commit 3e72c07
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/website/3d-tiles/app.js
Expand Up @@ -10,7 +10,7 @@ import {DracoLoader, DracoWorkerLoader} from '@loaders.gl/draco';
// Set your mapbox token here
const MAPBOX_TOKEN = process.env.MapboxAccessToken; // eslint-disable-line
const ION_TOKEN =
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxN2NhMzkwYi0zNWM4LTRjNTYtYWE3Mi1jMDAxYzhlOGVmNTAiLCJpZCI6OTYxOSwic2NvcGVzIjpbImFzbCIsImFzciIsImFzdyIsImdjIl0sImlhdCI6MTU2MjE4MTMxM30.OkgVr6NaKYxabUMIGqPOYFe0V5JifXLVLfpae63x-tA';
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJjYTExNWEwZC00MWFmLTRmNWUtOTA1Zi00OGUzMzlkMDVlNWQiLCJpZCI6NDQsInNjb3BlcyI6WyJhc3IiLCJnYyJdLCJhc3NldHMiOlsyODk1N10sImlhdCI6MTU2ODM5OTgxNn0.Bqe4IWmT6etdZYqm12WcgdW52wDLzdbKM4Xx_8lRZmk';

const INITIAL_VIEW_STATE = {
latitude: 40,
Expand Down Expand Up @@ -54,7 +54,7 @@ export class App extends PureComponent {
// Update deck.gl viewState, moving the camera to the new tileset
longitude: cartographicCenter[0],
latitude: cartographicCenter[1],
zoom: zoom + 1.5, // TODO - remove adjustment when Tileset3D calculates correct zoom
zoom,
bearing: INITIAL_VIEW_STATE.bearing,
pitch: INITIAL_VIEW_STATE.pitch
}
Expand All @@ -69,7 +69,7 @@ export class App extends PureComponent {
_renderTile3DLayer() {
return new Tile3DLayer({
id: 'tile-3d-layer',
_ionAssetId: 33301,
_ionAssetId: 28957,
_ionAccessToken: ION_TOKEN,
DracoWorkerLoader,
DracoLoader,
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion website/src/static/markdown/examples.md
Expand Up @@ -83,7 +83,14 @@
<a href="#/examples/core-layers/trips-layer">
<img src="images/demo-thumb-trip.jpg" />
</a>
</div>
</div>
</div>
<div class="thumb">
<div class="bg-black" data-title="Melbourne Point Cloud" data-name="Tile3DLayer">
<a href="#/examples/core-layers/tile3-dlayer">
<img src="images/demo-thumb-3d-tiles.jpg" />
</a>
</div>
</div>
</div>

Expand Down

0 comments on commit 3e72c07

Please sign in to comment.