How to use Cesium.Measure

Hey
Iโ€™m trying to activate the plugin
On a local host.
The local host is running and the model is appearing but I am unable to get a measurability bar to appear.
The code is attached
I would love to get help :slight_smile:

New York City
<style>
    html, body, #cesiumContainer {
        width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden;
    }

   
</style>
</head>
<body>
    <div id="cesiumContainer"></div> 
           
    <script >
         Cesium.Ion.defaultAccessToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJkNDIwOGFhZC05NGM1LTRmOGItOTVjMS1kZmZlNDFiNjc1MzciLCJpZCI6MzEwMzgsInNjb3BlcyI6WyJhc3IiLCJnYyJdLCJpYXQiOjE1OTQ3NDAzMjZ9.2VC0njaqUn3Oy4BNOKW06q3qBEWYZlmicucRG5iVgAQ";

         var viewer = new Cesium.Viewer("cesiumContainer");
         

         var imageryLayer = viewer.imageryLayers.addImageryProvider(
         new Cesium.IonImageryProvider({ assetId: 148315 }));

         

         var scene = viewer.scene;
         

        viewer.zoomTo(imageryLayer);



        var measureWidget = new Cesium.Measure({
        container : 'cesiumContainer',
        scene : scene,
        units : new Cesium.MeasureUnits({
        distanceUnits : Cesium.DistanceUnits.METERS,
        areaUnits : Cesium.AreaUnits.SQUARE_METERS,
        volumeUnits : Cesium.VolumeUnits.CUBIC_FEET,
        angleUnits : Cesium.AngleUnits.DEGREES,
        slopeUnits : Cesium.AngleUnits.GRADE})
        });
    </script>
</body>

Hi Yoni,

Welcome to the Cesium Community! Are you using CesiumJS or the Analytics SDK (also known as ion SDK)?

The measurement & analytics widgets are not part of CesiumJS. Theyโ€™re part of the commercial Analytics SDK.

More details in this post.

thank you for the answer,
Are there any plugins for CesiumJS?

There are no analytics plugins for CesiumJS that I am aware of. What kind of application are you creating? We have Cesium Stories which has the built-in measuring tools.

Yes i try the ion with the measuring tool
It works fine.
I wants to creat app in cesiumjs with measuring tools,
So im asking if ther any plugins for the open source.
Like at qgis

ื‘ืชืืจื™ืš ื™ื•ื ื”ืณ, 1 ื‘ืื•ืงืณ 2020, 21:31, ืžืืช Dzung Nguyen via Cesium Community โ€<cesium@discoursemail.com>:

I am not aware of any open-source plugin for the measure tool.

The Cesium measuring tool is part of our Analytics API which is a commercial tool. If you are interested, you can contact our sales team here.