layer.renderer = new SimpleRenderer({
symbol: new PointSymbol3D({
symbolLayers: [
new ObjectSymbol3DLayer({
resource: { primitive: "sphere" }
})
]
}),
visualVariables: [
new ColorVariable({
field: "mag",
stops: [{ value: 1, color: "white" }, { value: 5, color: "red" }]
}),
new SizeVariable({
field: "mag",
axis: "all",
stops: [{ value: 2, size: 500 }, { value: 7, size: 10000 }]
})
]
});