Skip to content

Instantly share code, notes, and snippets.

@RalucaNicola
Created July 16, 2020 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RalucaNicola/22564a1bacce275931a5d2934385783a to your computer and use it in GitHub Desktop.
Save RalucaNicola/22564a1bacce275931a5d2934385783a to your computer and use it in GitHub Desktop.
How to set a camera in ArcGIS API for JavaScript
const view = new SceneView({
container: "viewDiv",
map: map,
camera: {
heading: 90, // face due east
tilt: 45, // looking from a bird's eye view
position: {
latitude: 38,
longitude: -122,
z: 20000
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment