Select to view content in your preferred language

How to see the label when it is covered by a translucent object

405
1
Jump to solution
08-22-2022 01:14 AM
LeoChen5566
New Contributor

I have a translucent 3D box (point-3d symbol object).

And put a ship (another point-3d symbol object) in it.

But only the ship is displayed, the label is not.

Is there a way to show the label in box?

my code:

https://codepen.io/llllllllc/pen/yLKwgaP?editors=1000 

Web page screen:

CHIJUCJEN_0-1661155792827.png

LeoChen5566_0-1661156403220.png

 

 

Tags (4)
0 Kudos
1 Solution

Accepted Solutions
PeterDimitrov1
Esri Contributor

Hello LeoChen5566,

The labeled point feature (boat) is inside the box - therefore the label is obstructed by the box and is being removed.
I believe this to be the default behavior for labeling in 3D scenes in JS.

In contrast, if you were working with a 2D Map instead and had a similar case where a feature interior was overlapping the label of another feature, therefore causing it to disappear, this could be mitigated by setting the Deconfliction Strategy to None on that label class.

Unfortunately however, this is not yet supported for 3D scenes in JS.


Kind Regards,
Peter Dimitrov

View solution in original post

1 Reply
PeterDimitrov1
Esri Contributor

Hello LeoChen5566,

The labeled point feature (boat) is inside the box - therefore the label is obstructed by the box and is being removed.
I believe this to be the default behavior for labeling in 3D scenes in JS.

In contrast, if you were working with a 2D Map instead and had a similar case where a feature interior was overlapping the label of another feature, therefore causing it to disappear, this could be mitigated by setting the Deconfliction Strategy to None on that label class.

Unfortunately however, this is not yet supported for 3D scenes in JS.


Kind Regards,
Peter Dimitrov