var gfStepsConfig = addCameraTrigger([1.35, -2.79,1.56],[0.56, 0.4,1])
var gfStepsAnchor = viewer.addAnchor(gfStepsConfig, stepsCameraAnimation);
function stepsCameraAnimation(){
viewer.switchToView(“GroundFloorMap”)
}
function addCameraTrigger(pos, scale){
return anchorConfig ={
type:‘cameraVolumeTrigger’,
position :pos,
rotation :[0,0,0],
scale: scale,
}
}
I’m trying something like this, but its not working