how define font family

517
1
Jump to solution
01-12-2018 09:56 PM
anjelinaponkerat
Occasional Contributor II

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
});

0 Kudos
1 Solution

Accepted Solutions
anjelinaponkerat
Occasional Contributor II

problem solved by adding this:

font: { // autocasts as new Font()
size: 12,
family: "sans-serif",
weight: "bolder"
}

View solution in original post

0 Kudos
1 Reply
anjelinaponkerat
Occasional Contributor II

problem solved by adding this:

font: { // autocasts as new Font()
size: 12,
family: "sans-serif",
weight: "bolder"
}

0 Kudos