Hi Team,
I would like to use measurements that have my original looks.
I know this is how you add the measurement widgets but my trial to create costumed cesium ion SDK measurements have been failed.
viewer.extend(Cesium.viewerMeasureMixin);
I tried:
let scene = viewer.scene;
let units = new Cesium.MeasureUnits({
options: {
distanceUnits: Cesium.DistanceUnits.METERS
}
});
let points = new Cesium.PointPrimitiveCollection();
let labels = new Cesium.LabelCollection();
let primitives = new Cesium.PrimitiveCollection()
let measurementOptions = {
scene: scene,
units: units,
points: points,
labels: labels,
primitives: primitives
}
let measureHandler = new Cesium.MeasurementMouseHandler(scene);
let distanceMeasurement = new Cesium.DistanceMeasurement(measurementOptions);
distanceMeasurement.handleClick(pos => console.log(pos));
Any advice is very welcome,
Best,
Hiroshi