Hi Team,
I am trying to print the text symbol after few numbers one after the other. Before the print I can see the number are fine as expected but after the print its not coming properly. I am working with Javasacript 3 api.
here is code being used.
var symbol = new PictureMarkerSymbol(_globalGISUrl + "Images/marker/inspection-map-markers-no-status.png", 22, 22).setOffset(0, 5);
textSymbol = new TextSymbol(stop.attributes.OBJECTID.toString());
textSymbol.setFont(font);
textSymbol.setColor(new Color([255, 255, 255]));
textSymbol.setAlign(TextSymbol.ALIGN_MIDDLE);
textSymbol.setAngle(0);
textSymbol.setOffset(1, 0);
var newGraphic = new Graphic(stop.toJson());
newGraphic.setSymbol(symbol);
graphics.add(newGraphic);
var Graphictext = new Graphic(stop.toJson());
Graphictext.setSymbol(textSymbol);
graphics.add(Graphictext);
stop.setSymbol(textSymbol);
You can find the number is clear but when I print it.
The text 6 has text 5,3 below it. And during print its not coming as expected.
Has anyone else encountered any problem like this?
Thanks
Aditya
Solved! Go to Solution.
Hi @ADITYAKUMAR1, can you please provide a simplified test app that reproduces the issue? My hunch is that the scale is not being preserved, and the text symbols are not deconflicted. This is a use case that has been handled properly at 4x.
@Noah-Sager Any clue?
Hi @ADITYAKUMAR1, can you please provide a simplified test app that reproduces the issue? My hunch is that the scale is not being preserved, and the text symbols are not deconflicted. This is a use case that has been handled properly at 4x.
@Noah-Sager Is it possible to get the link of the use case? or any link where its been mentioned that its been handled?
I don't have a specific use case to point you towards, but if you create a similar app in 4x, you should see a better print experience.
https://developers.arcgis.com/javascript/latest/sample-code/widgets-print/