{
const containerWidth = width;
const containerHeight = 500;
const container = html`<div style="height:500px"></div>`;
yield container;
const weightColor = d3
.scaleSequentialSqrt(d3.interpolateYlOrRd)
.domain([0, 200]);
var world = Globe()
.globeImageUrl(
"//cdn.jsdelivr.net/npm/three-globe/example/img/earth-night.jpg"
)
.pointsData(sensors)
.pointAltitude("sensor_count")
.pointAltitude((d) => d.sensor_count * 6e-4)
.pointColor((d) => weightColor(d.sensor_count))
.width(containerWidth)
.height(containerHeight)(container);
world.controls().autoRotate = true;
world.controls().autoRotateSpeed = 0.6;
yield container;
}