modules/arcgis/src/arcgis-deck-layer-view-2d.js
// Attach is called as soon as the layer view is ready to start rendering.
Attach is called as soon as the layer view is ready to start rendering.
Attach is called as soon as the layer view is ready to start rendering .
attach() {
      const gl = this.context;
      this.initializeResources(gl);
      const dpr = window.devicePixelRatio;
      this.deckFbo = new Framebuffer(gl, {
        width: Math.round(this.view.state.size[0] * dpr),
        height: Math.round(this.view.state.size[1] * dpr)
      });
      this.initializeDeckGL(gl);
      this.handles.add([
        this.layer.deckLayers.on('change', () => {
          this.redraw();
        })
      ]);
      this.redraw();
    }
attach ( ) { const gl = this . context ; this . initializeResources ( gl ) ; const dpr = window . devicePixelRatio ; this . deckFbo = new Framebuffer ( gl , { width : Math . round ( this . view . state . size [ 0 ] * dpr ) , height : Math . round ( this . view . state . size [ 1 ] * dpr ) } ) ; this . initializeDeckGL ( gl ) ; this . handles . add ( [ this . layer . deckLayers . on ( 'change' , ( ) => { this . redraw ( ) ; } ) ] ) ; this . redraw ( ) ; }
Attach is called as soon as the layer view is ready to start rendering.
Attach is called as soon as the layer view is ready to start rendering .
// We use a full-screen quad and shaders to composite the frame rendered // with deck.gl on top of the MapView. Composition uses the MapView context. // eslint-disable-next-line // When the layer.layers collection changes, the new list of // layers must be set on the deck.gl instance. // We need to start drawing the deck.gl layer immediately.