Hi. I’m building a project using Vue3 and CesiumJS.
I got Cesium Ion SDK with license but I cant figure out how to add its features into my project.
my project is vue-cli based and have installed a cesium npm package (npm i cesium --save).
when i first created my project, i follow instructions from this link
I have tried to replace all files in ./node_modules/cesium/* with the files in Ion SDK’s build folder.
but it didnt work.
Is there any documents or tutorials?
All I need for now is using RectangularSensor.
=== additional info ===
below codes throw an exception.
TypeError: cesium__WEBPACK_IMPORTED_MODULE_19__.RectangularSensor is not a constructor
var sensor = this.viewer.scene.primitives.add(new Cesium.RectangularSensor({
modelMatrix: Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(126.867299046443, 37.546365885001)),
radius: 1000000.0,
xHalfAngle: Cesium.Math.toRadians(25.0),
yHalfAngle: Cesium.Math.toRadians(40.0)
}));