AnsweredAssumed Answered

how define font family

Question asked by anjelinaponkerat on Jan 12, 2018
Latest reply on Jan 13, 2018 by anjelinaponkerat

I,m working to add a feature layer to my Scene view(3d view of 4.6) and I can show label above points. I,m going to change font family of labels, but I can not find any solution to do this. please help...

 

labelingInfo: [{
// When using callouts on labels, "above-center" is the only allowed position
labelPlacement: "above-center",
labelExpressionInfo: {
value: "{NAME}"
},
symbol: {
type: "label-3d", // autocasts as new LabelSymbol3D()
symbolLayers: [{
type: "text", // autocasts as new TextSymbol3DLayer()
material: {
color: "black"
},
halo: {
color: [255, 255, 255, 0.7],
size: 2
},
size: 10
}],
// Labels need a small vertical offset that will be used by the callout
verticalOffset: {
screenLength: 150,
maxWorldLength: 2000,
minWorldLength: 30
},
// The callout has to have a defined type (currently only line is possible)
// The size, the color and the border color can be customized
callout: {
type: "line", // autocasts as new LineCallout3D()
size: 0.5,
color: [0, 0, 0],
border: {
color: [255, 255, 255, 0.7]
}
}
}
}],
labelsVisible: true
});

Outcomes