You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api-reference/geo-layers/tile-3d-layer.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -215,6 +215,10 @@ The Tile3DLayer renders the following sublayers based on tile [format](https://g
215
215
216
216
Follow [CompositeLayer](/docs/api-reference/core/composite-layer.md#_subLayerProp) and example in this layer doc to see how to override sub layer props.
217
217
218
+
## Remarks
219
+
220
+
- The `Tile3DLayer` can be rendered in multiple views. A tile is loaded if it is required by any of the viewports, and shared across all views via a single cache system.
Copy file name to clipboardExpand all lines: docs/developer-guide/views.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -307,7 +307,7 @@ const deck = new Deck({
307
307
});
308
308
```
309
309
310
-
Some layers, including `TileLayer`, `Tile3DLayer`, `HeatmapLayer` and `ScreenGridLayer`, perform expensive operations (data fetching/aggregation) on viewport change. Therefore, it is generally NOT recommended to render them into multiple views. If you do need to show e.g. tiled base map in multiple views, create one layer instance for each view and limit their rendering with `layerFilter`:
310
+
Some layers, including `TileLayer`, `HeatmapLayer` and `ScreenGridLayer`, perform expensive operations (data fetching/aggregation) on viewport change. Therefore, it is generally NOT recommended to render them into multiple views. If you do need to show e.g. tiled base map in multiple views, create one layer instance for each view and limit their rendering with `layerFilter`:
311
311
312
312
```js
313
313
constdeck=newDeck({
@@ -329,6 +329,8 @@ const deck = new Deck({
329
329
});
330
330
```
331
331
332
+
Starting with v8.5, `Tile3DLayer` supports rendering in multiple views with a single tile cache.
Copy file name to clipboardExpand all lines: docs/upgrade-guide.md
+17-26Lines changed: 17 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,47 +8,38 @@ The module entry point is now only lightly transpiled for the most commonly used
8
8
9
9
### Layers
10
10
11
+
#### Breaking changes
12
+
11
13
- A bug is fixed in projecting sizes in billboard mode. Pixel sizes now match their CSS counterparts. This change affects the following layers when used with a `MapView`:
12
14
+`ArcLayer`, `LineLayer` and `PointCloudLayer`
13
15
+`IconLayer` and `TextLayer` with the default `billboard` prop
14
16
+`PathLayer` with `billboard: true`
15
17
After upgrading to v8.5, in order to maintain the same appearance, you need to multiply `2/3` to the objects' width/size. This can be done by either changing the accessor (`getWidth`/`getSize`) or the scaling prop (`sizeScale`/`widthScale`).
16
-
-`TextLayer`'s `backgroundColor` prop is deprecated. Use `background: true` and `getBackgroundColor` instead.
17
18
-`TextLayer`'s default `fontSettings` have changed. When using `sdf`, the default `buffer` is now `4` and the default `radius` is now `12`.
18
-
-`PathLayer`'s `rounded` prop is deprecated, replaced by two separate flags `jointRounded` and `capRounded`.
19
19
-`GeoJsonLayer`'s `lineJointRounded` prop now only controls line joints. To use rounded line caps, set `lineCapRounded` to `true`.
20
20
- Dashed lines via `PathStyleExtension` now draw rounded dash caps if `capRounded` is `true`.
21
-
-`@deck.gl/geo-layers` now requires `@deck.gl/extensions`, due to `ClipExtension` dependency.
22
-
-`HeatmapLayer`'s `colorDomain` prop has redefined the unit of its values. See updated layer documentation for details.
23
-
-`MVTLayer`'s `binary` prop is now set to `true` by default.
24
-
-`CartoBQTilerLayer` will be deprecated in 8.6. Use `CartoLayer` instead with `type` set to `MAP_TYPES.TILESET`.
25
-
-`CartoSQLLayer` will be deprecated in 8.6. Use `CartoLayer` instead with `type` set to `MAP_TYPES.QUERY`.
26
-
-`GeoJsonLayer`'s `getRadius` props is deprecated, replaced by `getPointRadius`.
27
-
- It is recommended to use `zoomOffset` in the `TileLayer` when trying to affect the `zoom` resolution at which tiles are fetched.
28
-
-`MVTLayer` and `TerrainLayer`'s default loaders no longer support parsing on the main thread. This is the same behavior as before, just dropping unused code from the bundle. Should you need to use the layers in an environment where web worker is not available, or debug the loaders, you can supply the full loader as such:
29
-
30
-
```js
31
-
import {MVTLoader} from'@loaders.gl/mvt';
32
-
newMVTLayer({
33
-
loaders: [MVTLoader],
34
-
loadOptions: {worker:false}
35
-
});
36
-
```
37
-
38
-
```js
39
-
import {TerrainLoader} from'@loaders.gl/terrain';
40
-
newTerrainLayer({
41
-
loaders: [TerrainLoader],
42
-
loadOptions: {worker:false}
43
-
});
44
-
```
21
+
-`@deck.gl/geo-layers` now depends on `@deck.gl/extensions`.
22
+
-`HeatmapLayer`'s `colorDomain` prop has redefined the unit of its values. See updated [layer documentation](/docs/api-reference/aggregation-layers/heatmap-layer.md) for details.
23
+
-`MVTLayer`'s `binary` prop is now set to `true` by default to take advantage of the performance boost.
24
+
-`TileLayer` no longer uses `tileSize` to offset zoom in non-geospatial views. It is recommended to use the new `zoomOffset` prop to affect the `zoom` resolution at which tiles are fetched.
25
+
-`MVTLayer` and `TerrainLayer`'s default loaders no longer support parsing on the main thread. This does not change the layers' default behavior, just reduces the bundle size by dropping unused code. Should you need to use the layers in an environment where web worker is not available, or debug the loaders, follow the examples in [loaders and workers](/docs/developer-guide/loading-data.md#loaders-and-web-workers).
45
26
-`TerrainLayer`'s `workerUrl` prop is removed, use `loadOptions.terrain.workerUrl` instead.
46
27
28
+
#### Deprecations
29
+
30
+
-`TextLayer`'s `backgroundColor` prop is deprecated. Use `background: true` and `getBackgroundColor` instead.
31
+
-`PathLayer`'s `rounded` prop is deprecated, replaced by two separate flags `jointRounded` and `capRounded`.
32
+
-`GeoJsonLayer`'s `getRadius` props is deprecated, replaced by `getPointRadius`.
33
+
-`CartoBQTilerLayer` is deprecated and will be removed in 8.6. Use `CartoLayer` instead with `type` set to `MAP_TYPES.TILESET`.
34
+
-`CartoSQLLayer` is deprecated and will be removed in 8.6. Use `CartoLayer` instead with `type` set to `MAP_TYPES.QUERY`.
47
35
48
36
### onError Callback
49
37
50
38
`Deck`'s default `onError` callback is changed to `console.error`. Explicitly setting `onError` to `null` now silently ignores all errors, instead of logging them to console.
51
39
40
+
### loaders.gl v3.0
41
+
42
+
deck.gl now depends on `@loaders.gl/core@^3.0.0`. It is strongly recommended that you upgrade all loaders.gl dependencies to v3 as v2.x loaders are not tested with the v3.0 core. Visit loaders.gl's [upgrade guide](https://loaders.gl/docs/upgrade-guide) for instructions on each loader module.
Copy file name to clipboardExpand all lines: docs/whats-new.md
+47-25Lines changed: 47 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
This page contains highlights of each deck.gl release. Also check our [vis.gl blog](https://medium.com/vis-gl) for news about new releases and features in deck.gl.
4
4
5
-
## deck.gl v8.5 (In development)
5
+
## deck.gl v8.5
6
6
7
-
Release date: TBD
7
+
Release date: July 2021 (beta available)
8
8
9
9
10
10
<tablestyle="border: 0;"align="center">
@@ -18,7 +18,9 @@ Release date: TBD
18
18
</tbody>
19
19
</table>
20
20
21
-
### MVTLayer performance
21
+
### Layer Improvements
22
+
23
+
#### MVTLayer
22
24
23
25
Mapbox Vector Tiles parsing throughput is now 2-3x faster, due to MVT tiles being parsed directly into binary attributes rather than GeoJSON, and additional work (including [triangulation](https://github.com/visgl/loaders.gl/blob/master/docs/whats-new.md#v30-in-development)) being performed on worker threads. Speed comparison on some example data sets (MVT tiles parsed per second):
24
26
@@ -31,7 +33,7 @@ Mapbox Vector Tiles parsing throughput is now 2-3x faster, due to MVT tiles bein
31
33
32
34
_Benchmarks ran using scripts on a 2012 MacBook Pro, 2.3 GHz Intel Core i7, 8 GB, measuring parsing time of MVTLoader only (network time and rendering is not included)_
33
35
34
-
### GeoJsonLayer point types
36
+
####GeoJsonLayer
35
37
36
38
GeoJSONLayer now supports rendering point features as icons and/or text labels in addition to circles. Use the new `pointType` prop:
37
39
@@ -46,23 +48,10 @@ new GeoJsonLayer({
46
48
47
49
For a full list of new props, visit the updated [documentation](/docs/api-reference/layers/geojson-layer.md).
48
50
49
-
### Default transpilation and bundle size
50
-
51
-
The NPM distribution has dropped IE 11 support in exchange for an almost 20% reduction in size.
| main (dist/es5) | 686 KB (178 KB) | 812 KB (197 KB) | Transpiled, no tree-shaking |
57
-
58
-
*Measured as the footprint of @deck.gl/core, bundled and minified with Webpack 4*
59
-
60
-
To support older or less common browsers, make sure that `node_modules` is included in your application's babel settings.
61
-
62
-
For backward compatibility, the pre-built bundle (`dist.min.js`) is not affected by this change.
63
51
52
+
#### TextLayer
64
53
65
-
### TextLayer
54
+
The layer now supports automatically detecting the characters used in the data. Set `characterSet: 'auto'` to enable this feature.
66
55
67
56
New props are added for more flexible styling of the texts:
68
57
@@ -74,18 +63,51 @@ New props are added for more flexible styling of the texts:
74
63
*`getBorderWidth`
75
64
*`getBorderColor`
76
65
77
-
The layer now supports automatically detecting the characters used in the data. Set `characterSet: 'auto'` to enable this feature.
78
-
79
66
See [documentation](/docs/api-reference/layers/text-layer.md) for details.
80
67
81
-
### React
82
68
83
-
The `DeckGL` React component is rewritten using functional component and hooks.
69
+
#### Tile3DLayer
70
+
71
+
Tile3DLayer can now be rendered in multiple views. Previously if you use multiple views it was required to create one Tile3DLayer for each view. Using a single layer is more efficient by sharing the tile cache.
84
72
85
-
### Other layer improvements
73
+
The layer now takes full advantage of new features in I3S 1.7 tile sets, including:
74
+
+ Picking individual objects inside a tile
75
+
+ Page nodes (improved performance)
76
+
+ Draco compressed meshes (improved performance)
77
+
+ Compressed textures (improved performance)
78
+
+ PBR materials
79
+
+ Vertex colors
80
+
+ UVRegions
86
81
82
+
83
+
#### Other layer improvements
84
+
85
+
-`ScatterplotLayer` adds `billboard` mode
86
+
-`TripLayer` adds `fadeTrail` mode
87
87
-`PathLayer` now supports controlling `jointRounded` and `capRounded` separately. Dashed lines via `PathStyleExtension` also respects the cap type.
88
-
-`PolygonLayer` and `GeoJsonLayer`: `autoHighlight` now highlights both the outline and the fill of the hovered polygon, instead of either the outline or the fill.
88
+
-`PolygonLayer` and `GeoJsonLayer`: `autoHighlight` now highlight both the outline and the fill of the hovered polygon, instead of either the outline or the fill.
89
+
-`HeatmapLayer` now correctly renders `aggregation: 'MEAN'` with user-supplied `colorDomain`.
90
+
91
+
92
+
### Default transpilation and bundle size
93
+
94
+
The NPM distribution has dropped IE 11 support in exchange for an almost 20% reduction in size.
0 commit comments