1
2
3
4
5
6
const hwyRenderer = {
type: "unique-value", // autocasts as new UniqueValueRenderer()field: "CLASS",
defaultSymbol: otherSym, // used to visualize all features not matching specified typesdefaultLabel: "Other major highways"// used in the legend for all other types not specified};
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const hwyRenderer = {
type: "unique-value", // autocasts as new UniqueValueRenderer()field: "CLASS",
defaultSymbol: otherSym, // used to visualize all features not matching specified typesdefaultLabel: "Other major highways", // used in the legend for all other types not specified// used for specifying unique valuesuniqueValueInfos: [
{
value: "I", // code for interstates/freewayssymbol: fwySym,
label: "Interstate"// used in the legend to describe features with this symbol },
{
value: "U", // code for U.S. highwayssymbol: hwySym,
label: "US Highway"// used in the legend to describe features with this symbol }
]
};