SceneTransforms.wgs84ToWindowCoordinates returns values according to the canvas and not the document

Hi,
When using the function - The x,y returned are related to the start of the canvas and not the start of the document.
This is meaningful when I have the map as a part in my HTML page and the canvas is not stretched through all of the the page.

Is there any bypass?

Hello,

No, there isn’t a way to change this functionality. You will have to compute the offset manually.

-Hannah