Select to view content in your preferred language

JS 4.16 and SceneView's toScreen

419
0
09-30-2020 06:36 AM
MinShin
Occasional Contributor

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

0 Kudos
0 Replies