Search results added to the legend as operational layers correctly display the service name it originated from. However, when sending to a print task (as a pdf or any other output type), it renames this to "Override 1" in the legend of the print.
Has anyone been able to at least modify this name to something specific? Any suggestions on where to begin?
Thanks!
James,
Unfortunately this has been an issue in the ArcGIS Server printing for some time now. I have never found a way to workaround this.
Thank you for the reply, Robert. Is this something that ESRI support could address or is this an issue related to a custom widget?
Thanks again for all of your input!
James,
I can't remember right now, but I think it has to do with all client side created graphics layers.
Hi, Robert. Do you know if there has been an update to this?
Thanks...Chris
None that I am aware of.
OK…thanks, Robert.
I think for now there are only work-arounds, by making at least one of the symbols hollow, then it will print all the names.
Baba
OK...thanks.
what does "...making at least one of the symbols hollow" mean? Set opacity to 0?
Does *anyone* else have a work-around for this?
here's how I define my symbol:
var sms = new SimpleMarkerSymbol({
type: "simple-marker",
color: new dojo.Color(typeColor),
style: "square",
size: 10,
outline: {
color : [ 0, 0, 0, 1 ],
width : 1
}
});
var r = {
type: "simple",
symbol: sms,
label: typeDesc
};
var featureLayer = new FeatureLayer({
fields: fields,
objectIdField : "ObjectID",
id: id,
geometryType: "point",
// source: graphic -- we add this later
spatialReference: {
wkid: 4326
},
popupTemplate: popupTemp,
renderer: r,
outFields: ["*"]
});