Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Volker Coors
  • Visualization
  • Wiki
  • Exercise for multiresolution models
  • Visualization with Deck.gl

Last edited by Rager Jun 22, 2020
Page history

Visualization with Deck.gl

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

<!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

<!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.

Clone repository
  • Exercise for Multiresolution Models
    • Feature manipulation engine (FME)
    • Introduction
    • Open source datasets
    • Visualization with ArcGIS
    • Visualization with CesiumJS
    • Visualization with Deck.gl
  • FME
  • Project_1
  • Useful tools
  • Visualization of Bike Sharing Data
  • cesium fundamentals
  • Home

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