Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • V Visualization
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Volker Coors
  • Visualization
  • Wiki
  • Exercise for multiresolution models
  • Visualization with Deck.gl

Visualization with Deck.gl · Changes

Page history
Create Exercise for Multiresolution Models/Visualization with Deck.gl authored 4 years ago by Rager's avatar Rager
Hide whitespace changes
Inline Side-by-side
Showing
with 112 additions and 0 deletions
+112 -0
Exercise-for-Multiresolution-Models/Visualization-with-Deck.gl.md 0 → 100644
View page @ 6e3b779c
# Deck.gl
Deck.gl is a JavaScript framework for data visualization developed by Uber. It supports both the I3S and the 3D tiles format and can render them. You can use the hosted version or download it, like the Cesium library, from their website:
https://deck.gl/#/documentation/getting-started/installation.
# Sample code for I3S
```html
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<script src="https://unpkg.com/deck.gl@latest/dist.min.js"></script>
<script src="https://unpkg.com/@loaders.gl/i3s@2.1.6/dist/dist.min.js"></script>
<script src="https://unpkg.com/@deck.gl/geo-layers@latest/dist.min.js"></script>
<style>
#container {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
</style>
</head>
<body>
<div id="container">
<canvas id="deck-canvas"></canvas>
</div>
<script>
const INITIAL_VIEW_STATE = {
longitude: -74.007,
latitude: 40.712,
zoom: 14,
bearing: 0,
pitch: 60
};
new deck.DeckGL({
canvas: 'deck-canvas',
width: '100%',
height: '100%',
initialViewState: INITIAL_VIEW_STATE,
controller: true,
layers: [
new deck.Tile3DLayer({
id: 'tile-3d-layer',
data: 'https://tiles.arcgis.com/tiles/P3ePLMYs2RVChkJx/arcgis/rest/services/Buildings_NewYork_17/SceneServer/layers/0',
loader: I3SLoader
})
]
});
</script>
</body>
</html>
```
You will have to wait a bit after opening the HTML document in your browser.
# Sample code for 3D tiles
```html
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<script src="https://unpkg.com/deck.gl@latest/dist.min.js"></script>
<script src="https://unpkg.com/@loaders.gl/3d-tiles@2.1.6/dist/dist.min.js"></script>
<script src="https://unpkg.com/@deck.gl/geo-layers@latest/dist.min.js"></script>
<style>
#container {
position: fixed;
top:0;
left: 0;
right: 0;
bottom: 0;
}
</style>
</head>
<body>
<div id="container">
<canvas id="deck-canvas"></canvas>
</div>
<script>
const INITIAL_VIEW_STATE = {
longitude: -74.007,
latitude: 40.712,
zoom: 14,
bearing: 0,
pitch: 60
};
new deck.DeckGL({
canvas: 'deck-canvas',
width: '100%',
height: '100%',
initialViewState: INITIAL_VIEW_STATE,
controller: true,
layers: [
new deck.Tile3DLayer({
id: 'tile-3d-layer',
data: 'url/to/your/tileset/tileset.json',
loader: Tiles3DLoader
})
]
});
</script>
</body>
</html>
```
# Styling
Styling for this framework is still developed and currently not available.
\ No newline at end of file
Clone repository
  • Create a simple web AR application [De]
  • Create a simple web AR application
  • Exercise for Multiresolution Models
    • Feature manipulation engine (FME)
    • Introduction
    • Open source datasets
    • Visualization with ArcGIS
    • Visualization with CesiumJS
    • Visualization with Deck.gl
  • FME
  • OGC API 3D GeoVolume
  • Project_1
  • Styling of 3D building models by Attributes
  • Three.js 101 : Hello World!
  • Useful tools
  • Visualization of Bike Sharing Data
View All Pages

Menu

Explore Projects Groups Snippets

Dies ist die Gitlab-Instanz des Transferportals der Hochschule für Technik Stuttgart. Hier geht es zurück zum Portal