Hi all, I am trying to display a scene layer shared on ArcGIS online. I encountered a problem when I initiated the SceneView with camera property. The source code is as below,
const bSceneLayer = new BuildingSceneLayer({
url: my_url,
});
const basemap = new Basemap({
baseLayers: [bSceneLayer],
});
var map = new Map({
basemap: basemap,
});
const view = new SceneView({
container: "viewDiv",
map: map,
camera: {
heading: 90,
tilt: 45,
position: [ -122, 38, 20000 ]
}
});
(The reason of initiating the map in this way is stated in another post)
The scene layer displays but the console shows me an error
The same error appeared when I tried to assign a new or cloned camera. And no effects when I tried to do view.goTo(...).
Why is this happened and how can I solve this error?
Thanks for helping