AnsweredAssumed Answered

JS 4.16 and SceneView's toScreen

Question asked by mins_gbs_dev on Sep 30, 2020

Hi,

 

I am using JS 4.16 and would like to calculate screen points for two sets of LatLng coordinates, topleft(northwest) and bottomright(southeast).

 

If I use MapView's toScreen(), I get two screen points and can draw a rectangle as below. 

But if I try the same in ScenView, it will return the center point for both coordinates.

 

You can test this by switching MapView and SceneView in line 51 in the attached example.

 

I am wondering if this is a bug. 

Thanks for your attention.

 

 

Regards,

Min

Attachments

Outcomes