Select to view content in your preferred language

locationToScreen in AGSSceneView always in 3D

517
3
Jump to solution
04-06-2022 04:23 AM
YoussefMAHERZI
Occasional Contributor

Hello,

I'm using an AGSSceneView with no elevation and the method locationToScreen calculate the location of the AGSPoint as if the scene had an elevation which causes wrong values of the screenPoint.
When I remove the elevation from the AGSPoint, I get the correct values.

I think that's something that could be fixed.

 

Thank you

0 Kudos
1 Solution

Accepted Solutions
YoussefMAHERZI
Occasional Contributor

I aplogize, there's no problem in the method.
I was confused by the overlay.sceneProperties?.surfacePlacement = .drapedFlat that do not affect the scene still being in 3D.

View solution in original post

0 Kudos
3 Replies
MarkDostal
Esri Regular Contributor

Hello!  What kind of wrong values are you seeing with the screenPoint?  Can you provide some sample values of the inputs to "locationToScreen" and the incorrect output values you are getting?  Where are the input points coming from?

Also, what version of the Runtime SDK are you using?

Thank you,

Mark

0 Kudos
YoussefMAHERZI
Occasional Contributor

I aplogize, there's no problem in the method.
I was confused by the overlay.sceneProperties?.surfacePlacement = .drapedFlat that do not affect the scene still being in 3D.

0 Kudos
MarkDostal
Esri Regular Contributor

Ok, great, I'm glad you resolved the issue.  If you have any other questions, please let us know.

Mark

0 Kudos