@reearth/core 0.0.7-alpha.29 → 0.0.7-alpha.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reearth/core",
3
- "version": "0.0.7-alpha.29",
3
+ "version": "0.0.7-alpha.30",
4
4
  "author": "Re:Earth contributors <community@reearth.io>",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A library that abstracts a map engine as one common API.",
@@ -561,7 +561,10 @@ export default ({
561
561
  const l = await scene.imageryLayers.pickImageryLayerFeatures(pickRay, scene);
562
562
 
563
563
  // Find the topmost overlaid feature.
564
- const f = l?.findLast(f => !!f.data);
564
+ const f = l?.findLast(f => {
565
+ const appearanceType = f?.data?.appearanceType;
566
+ return appearanceType && f?.data?.feature?.[appearanceType]?.show !== false;
567
+ });
565
568
 
566
569
  const appearanceType = f?.data?.appearanceType;
567
570