@deck.gl/geo-layers 9.0.7 → 9.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist.dev.js +4 -7
- package/dist/index.cjs +4 -7
- package/dist/index.cjs.map +2 -2
- package/dist/tile-layer/tile-layer.d.ts +3 -1
- package/dist/tile-layer/tile-layer.d.ts.map +1 -1
- package/dist/tile-layer/tile-layer.js +5 -7
- package/dist.min.js +1 -1
- package/package.json +4 -4
- package/src/tile-layer/tile-layer.ts +8 -8
package/dist/dist.dev.js
CHANGED
|
@@ -11776,21 +11776,18 @@ var __exports__ = (() => {
|
|
|
11776
11776
|
return null;
|
|
11777
11777
|
}
|
|
11778
11778
|
getPickingInfo(params) {
|
|
11779
|
-
const
|
|
11779
|
+
const sourceLayer = params.sourceLayer;
|
|
11780
|
+
const sourceTile = sourceLayer.props.tile;
|
|
11780
11781
|
const info = params.info;
|
|
11781
11782
|
if (info.picked) {
|
|
11782
11783
|
info.tile = sourceTile;
|
|
11783
11784
|
}
|
|
11784
11785
|
info.sourceTile = sourceTile;
|
|
11786
|
+
info.sourceTileSubLayer = sourceLayer;
|
|
11785
11787
|
return info;
|
|
11786
11788
|
}
|
|
11787
11789
|
_updateAutoHighlight(info) {
|
|
11788
|
-
|
|
11789
|
-
if (sourceTile && sourceTile.layers) {
|
|
11790
|
-
for (const layer of sourceTile.layers) {
|
|
11791
|
-
layer.updateAutoHighlight(info);
|
|
11792
|
-
}
|
|
11793
|
-
}
|
|
11790
|
+
info.sourceTileSubLayer.updateAutoHighlight(info);
|
|
11794
11791
|
}
|
|
11795
11792
|
renderLayers() {
|
|
11796
11793
|
return this.state.tileset.tiles.map((tile) => {
|
package/dist/index.cjs
CHANGED
|
@@ -1542,21 +1542,18 @@ var _TileLayer = class extends import_core5.CompositeLayer {
|
|
|
1542
1542
|
return null;
|
|
1543
1543
|
}
|
|
1544
1544
|
getPickingInfo(params) {
|
|
1545
|
-
const
|
|
1545
|
+
const sourceLayer = params.sourceLayer;
|
|
1546
|
+
const sourceTile = sourceLayer.props.tile;
|
|
1546
1547
|
const info = params.info;
|
|
1547
1548
|
if (info.picked) {
|
|
1548
1549
|
info.tile = sourceTile;
|
|
1549
1550
|
}
|
|
1550
1551
|
info.sourceTile = sourceTile;
|
|
1552
|
+
info.sourceTileSubLayer = sourceLayer;
|
|
1551
1553
|
return info;
|
|
1552
1554
|
}
|
|
1553
1555
|
_updateAutoHighlight(info) {
|
|
1554
|
-
|
|
1555
|
-
if (sourceTile && sourceTile.layers) {
|
|
1556
|
-
for (const layer of sourceTile.layers) {
|
|
1557
|
-
layer.updateAutoHighlight(info);
|
|
1558
|
-
}
|
|
1559
|
-
}
|
|
1556
|
+
info.sourceTileSubLayer.updateAutoHighlight(info);
|
|
1560
1557
|
}
|
|
1561
1558
|
renderLayers() {
|
|
1562
1559
|
return this.state.tileset.tiles.map((tile) => {
|