Skip to content

Instantly share code, notes, and snippets.

@RalucaNicola
Last active July 30, 2019 14:26
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/85329b9bbc07661dd99b6250370e910b to your computer and use it in GitHub Desktop.
Save RalucaNicola/85329b9bbc07661dd99b6250370e910b to your computer and use it in GitHub Desktop.
const webscene = new WebScene({
ground: {
opacity: 0 // set transparent ground
}
});
const view = new SceneView({
container: "viewDiv",
map: webscene,
qualityProfile: "high",
viewingMode: "local",
spatialReference: {
wkid: 2056
},
camera: {
position: { x: 2694307.39164, y: 1245619.17789, z: 100890.937, spatialReference: 2056 },
heading: 0.00,
tilt: 0.50
},
alphaCompositingEnabled: true, // enable transparent background
environment: {
background: {
type: "color",
color: [0, 0, 0, 0] // set background opacity to 0
},
starsEnabled: false,
atmosphereEnabled: false
},
constraints: {
altitude: {
min: 5000,
max: 100000
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment