This is what I have....
No matter what I change the RoadColor to it still comes up green (in the example the Hex color is red)
The LabelClass for the Roads work Fine
I even changed the road width on the SizeInfo to 40 and all the roads are the same width
var RoadEndPoint1 = "https://xxxxx/FeatureServer/11";
var RoadBlack1 = new FeatureLayer(RoadEndPoint1, {
mode: FeatureLayer.MODE_ONDEMAND,
id: "Roads1",
minScale: 50000,
visible: false,
outFields: ["STREET_NAME_FULL", "SPEED"]
});
legendLayers.push({ layer: RoadBlack1, title: 'Roads Centerline 2' });
var labelClass1 = new LabelClass({
labelExpressionInfo: {"value": "{STREET_NAME_FULL}"},
symbol: {
"type": "esriTS",
"color": [255,255,255],
"haloColor": [0,0,0],
"haloSize": "1.25",
"verticalAlignment": "middle",
"horizontalAlignment": "center",
"yoffset": "0",
"font": {
"family": "Arial",
"size": "12px",
"weight": "BOLDER"
}
}
});
RoadBlack1.setLabelingInfo([ labelClass1 ]);
var RoadColor = new Color("#FF0000");
var RoadSymbol = new SimpleLineSymbol("solid", RoadColor, 1.5);
var RoadRenderer = new SimpleRenderer(RoadSymbol);
var sizeInfo = {
type: "sizeInfo",
field:"SPEED",
minSize: 0.2,
maxSize: 40,
minDataValue: 0,
maxDataValue: 70
};
RoadRenderer.setVisualVariables(sizeInfo);
RoadBlack.setRenderer(RoadRenderer);