camera

camera.worldToScreen

worldToScreen(point: object): object

Project a world-space point to canvas pixel coordinates.

Pure world → screen, no cloudScene matrix. Mirrors the NDC → pixel math used by MapApi.latLngToScreen but operates directly on the camera's projection — no map / scene transform.

Steps:

  1. Vector3.project(camera) → NDC [-1, 1]
  2. NDC → pixel via the canvas clientWidth / clientHeight

Returns null when interaction or camera is not yet wired, or no canvas can be located.

pointobject

Returns: object