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
<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>