1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Set a simple renderer on the layercsvLayer.renderer = {
type: "simple", // autocasts as new SimpleRenderer()symbol: {
type: "point-3d", // autocasts as new PointSymbol3D()// for this symbol we use 2 symbol layers, one for the outer circle// and one for the inner circlesymbolLayers: [{
type: "icon", // autocasts as new IconSymbol3DLayer()resource: { primitive: "circle"},
material: { color: [255, 84, 54, 1] },
size: 5 }, {
type: "icon", // autocasts as new IconSymbol3DLayer()resource: { primitive: "circle"},
material: { color: [255, 84, 54, 0] },
outline: {color: [255, 84, 54, 0.6], size: 1},
size: 25 }]
}
}
// Add the layer to the mapmap.add(csvLayer);