How do you use costumed cesium ion SDK measurements?

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

@Hiroshi_Yaginuma

Thank you for your question! What exactly do you mean by using measurements with original looks? I would also love to learn more about the result that you are getting when running the code that you have shared above.

-Sam

@Hiroshi_Yaginuma

I noticed a similar question on stack overflow. Feel free to check out this thread:

-Sam