gi-nx / setTopView
ts
function setTopView(view: "2D" | "3D"): void;Set the map camera mode to flat 2D or perspective 3D. In 2D mode the camera looks straight down. In 3D mode the camera has pitch and allows tilting.
Parameters
| Parameter | Type | Description |
|---|---|---|
view | "2D" | "3D" | '2D' for flat overhead view, '3D' for perspective view with pitch |
Returns
void
Throws
Error "Invalid view" if view is not '2D' or '3D'
Example
typescript
rpc.invoke("setTopView", ["3D"]);