Good Day
I switched from using a simple render to a unique render, but now when I print the map using the PrintTask, it's now showing the picture markers the same as before.
This view from the PrintTask:
Should look something like:
My render setting is:
field: "layer"
type: "unique-value"
uniqueValueInfos: [
{
label: "Market 1"
symbol: {
height: "20px"
type: "picture-marker"
url: "blah.png"
width: "20px"
}
value: "someValue1"
},
{...},
{...}
]
Did I do something wrong setting up the render? I also noticed that if I try to map multiple things a label shows up that appears random, without a legend marker:
Would this be the Feature Layer title, or where else would that come from / can I turn it off? I set the title to an empty string, but it's not disabling it:
return {
fields: this._fields,
source: data,
outFields: ['*'],
objectIdField: 'ObjectID',
geometryType: geometryType,
spatialReference: {
wkid: 4326
},
title: ''
};
If anyone knows about either issue, do you know how to fix it?
Thanks in advance 🙂