ArcGIS Runtime SDK for macOS

Navigate a scene view

You can navigate a scene view (a 3D map):

Built-in navigation

The scene view has a number of built-in gestures that allow you to navigate a scene (3D) using the trackpad and the keyboard. The tables below defines these gestures:

NavigationUser Action

Zoom in

CMD plus sign (+)

OPTION up arrow

On a trackpad - double click

Zoom out

CMD minus sign (-)

OPTION down arrow

On a trackpad - OPTION double click

Move up or down, left or right

On a trackpad- single click and drag

On a trackpad - two finger drag

Arrow keys - up, down, left, and right

Tilt the scene

On a trackpad - OPTION two fingers swipe up and down

Rotate the scene

OPTION Arrow keys - left, and right

On a trackpad - OPTION two 2 fingers swipe left and right

Rotate to North

CMD arrow up

Set pitch to zero

CMD OPTION arrow up

Programmatically change camera position

Your applications can programmatically navigate a 3D scene by creating a new camera and setting it to the scene view. A camera defines the location from which you are viewing the scene.

Camera position for a scene view

The camera is shown in this image for illustration purposes; when you set camera settings (location, pitch), think of the camera class a real-life camera you're adjusting the position of.

Set the camera

For example, to point the camera to toward the Snowdon mountainside, as shown in the following code snippet and image, use these values:

  • For 3D location, use 53.06 latitude, -4.04 longitude, 1289 metres above sea level
  • For heading, use 295 degrees
  • For pitch, use 71 degrees

Surface elevation applied to a scene

Now you have a new camera you can apply to your scene view. You can apply it immediately using setViewpointCamera as shown in the code below, or the camera can be animated to the new position using one of the asynchronous methods.