Text Symbol overlapping during Print

889
4
Jump to solution
03-14-2022 08:56 AM
ADITYAKUMAR1
Occasional Contributor III

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);

 

ADITYAKUMAR1_0-1647321941814.png

 

You can find the number is clear but when I print it.

ADITYAKUMAR1_1-1647321959262.png

 

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 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Noah-Sager
Esri Regular Contributor

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.

View solution in original post

4 Replies
ADITYAKUMAR1
Occasional Contributor III

@Noah-Sager  Any clue?

0 Kudos
Noah-Sager
Esri Regular Contributor

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.

ADITYAKUMAR1
Occasional Contributor III

@Noah-Sager Is it possible to get the link  of the use case? or any link where its been mentioned that its been handled?

 

0 Kudos
Noah-Sager
Esri Regular Contributor

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/