Releases: visgl/deck.gl
Releases · visgl/deck.gl
v3.1.1
v3.1.0
v3.0.10
v3.0.8
v3.0.7
v3.0.6
v3.0.5
v3.0.4
v3.0.2
v3.0.0
Highlights
- New website
- Comprehensive documentation
- All Core Layers updated (API, features, performance)
- 64-bit Layers (High Precision)
- METERS projection mode (High Precision)
- Multi-Primitive Layer Support
- Composite Layer Support
React Integration
DeckGL
(DeckGLOverlay
in v2) component now requires a separate
import (import DeckGL from 'deck.gl/react'
). This allows the core
deck.gl library to be imported by non-React applications without
pulling in React.- Adds
onLayerClick
andonLayerHover
props to theDeckGL
React
component. - The
DeckGL
component now cancels animation loop on unmount,
important when repeatedly creating/destroying deck.gl components. - The
DeckGL
component no longer manages WebGL blending modes,
as this is better done directly by layers.
Layers
- All layers now support accessors, removing the need for applications to
transform data before passing it to deck.gl. - Layer props and accessors now always expect arrays (e.g. colors
are expected as[r,g,b,a]
instead of{r,g,b,a}
etc). - line widths now takes device pixel ratio into account for more consistent
look between displays METERS
projection mode allows specifying positions in meter offsets in
addition to longitude/latitude.- Layers now receive viewport information from the
DeckGL
component.
This implies that apps no longer need to pass thewidth
,height
,
longitude
,latitude
,zoom
,pitch
,bearing
andbearing
props to each layer.
These properties only need to be passed to theDeckGL
react component.
Base Layer
deepCompare
prop replaced with more flexibledataComparator
ArcLayer
- Specify separate start and end color for each arc.
- Renders smoother arcs, especially for bottom arc segments close to map
- Fixes flickering last segments
ScatterplotLayer.
- Adds drawOutline option.
ScreenGridLayer
- New name for deck.gl v2 GridLayer
- Now have accessors (getPosition, getWeight)
- Custom color ramps (minColor, maxColor)
ChoroplethLayer
- Now renders MultiPolygons and Polygons with holes
HexagonLayer (removed)
- The v2 HexagonLayer has not yet been ported to v3.
64bit layers
A set of new high precision layers that support extreme zoom levels
ArcLayer64
ChoroplethLayer64
ScatterplotLayer64
64bit ExtrudedChoroplethLayer
- Great for rendering 3D buildings on top of maps
- Includes a basic shading model
Sample Layers
Sample layers now available through import 'deck.gl/samples';
GeoJsonLayer (experimental)
- Initial composite layer, only Polygons for now.
Changes affecting Custom Layers
Streamlined life cycle methods
- The Layer life cycle methods are now optimized for deck.gl's needs
and no longer try to mimic React. - Limited compatibility with deck.gl v2 is provided but it is strongly
recommended to update layers to the new methods
Optimizations
Uint8Array
encoding is now supported for color and picking color
attributes, which provides significant GPU memory savings.
GLSL package manager and modules
- All layers now use
assembleShaders
to inject GLSL packages and platform
fixes - GLSL
project
package - - GLSL
fp64
emulated double precision floating point package - GLSL
fp32
package - 32bit improved precision library- Adds high precision version of trigonometry functions and
tan
- Especially for Intel GPUs
- Adds high precision version of trigonometry functions and