1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const renderer = {
type: "simple", // autocasts as new SimpleRenderer()
symbol: {
// symbol type required for rendering point geometries
type: "point-3d", // autocasts as new PointSymbol3D()
symbolLayers: [
{
// renders points as volumetric objects
type: "object", // autocasts as new ObjectSymbol3DLayer()
resource: { primitive: "cone" }, // renders points as cones
width: 50000
}
]
},
visualVariables: [
{
type: "color",
field: "PRESSURE", // field containing data for atmospheric pressure
stops: [{ value: 950, color: "red" }, { value: 1020, color: "blue" }]
},
{
type: "size",
field: "WINDSPEED", // field containing data for wind speed
stops: [{ value: 20, size: 60000 }, { value: 150, size: 500000 }],
axis: "height"
},
{
type: "size",
axis: "width-and-depth",
useSymbolValue: true // uses the width value defined in the symbol layer (50,000)
}
]
};