As the scene rotates, the direction of the photo also changes

321
3
03-22-2023 08:35 PM
HAOH
by
New Contributor II

How to solve the problem of using GeoJSONLayer3D scenes, when rotating the map, the direction of the photo also changes (where I used the featureReduction attribute)

Below is my partial code:

HAOH_0-1679542444523.png

HAOH_1-1679542514022.png

 

 

0 Kudos
3 Replies
ArnoFiva
Esri Contributor

Thanks for your question! It would help to see a screenshot of the current behavior to better understand what you expect to see instead.

I'm assuming the PictureMarkerSymbol is currently shown as a billboarded icon in the 3D scene, this is the default behavior. You can drape them to the ground by changing the elevation info on your GeoJSON layer to mode: "on-the-ground", as explained here: https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html

Here are two CodePens showing the difference:

Billboard icons
https://codepen.io/arnofiva/pen/poOQGoG/1b63bec0e62aa8f79f51064e7a3b360c?editors=1010

Screenshot 2023-03-23 at 4.35.59 PM.png

Draped icons
https://codepen.io/arnofiva/pen/WNgYPYq/f51cf1af782c07af439aa7eed42760a4?editors=1000

Screenshot 2023-03-23 at 4.36.14 PM.png

 

 

 

0 Kudos
HAOH
by
New Contributor II

When I set the featureReduction property, the elevationInfo property will become invalid

0 Kudos
ArnoFiva
Esri Contributor

I am unable to reproduce what you are describing. Can you provide a running sample (CodePen)?

0 Kudos