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:
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 iconshttps://codepen.io/arnofiva/pen/poOQGoG/1b63bec0e62aa8f79f51064e7a3b360c?editors=1010
Draped iconshttps://codepen.io/arnofiva/pen/WNgYPYq/f51cf1af782c07af439aa7eed42760a4?editors=1000
When I set the featureReduction property, the elevationInfo property will become invalid
I am unable to reproduce what you are describing. Can you provide a running sample (CodePen)?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.