<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Label wrapping in web map export in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-wrapping-in-web-map-export/m-p/1262092#M80394</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/427190"&gt;@julian_svcs&lt;/a&gt;,&amp;nbsp;thanks for sharing your issue here. It looks like this might be due to an issue with the print service, we are currently investigating.&lt;/P&gt;&lt;P&gt;The issue is probably caused by the comma and the space constraints, because the comma is &lt;SPAN&gt;a default stacking separator, and it looks like the wrapping only occurs where the space is tight. One workaround suggestion would be to set the deconflictionStrategy to none and see if that helps (or makes it look worse).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#deconflictionStrategy" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#deconflictionStrategy&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another workaround option would be to try returning a number instead of a string from the Arcade expression.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 18:59:27 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2023-02-27T18:59:27Z</dc:date>
    <item>
      <title>Label wrapping in web map export</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-wrapping-in-web-map-export/m-p/1261905#M80388</link>
      <description>&lt;P&gt;I have a FeatureLayer that I am setting .labelingInfo. In my map view the labels are shown correctly but in my web map export PDF, the label values are wrapped. And ideas how to not wrap the labels in the PDF export?&lt;/P&gt;&lt;P&gt;Labeling code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const nameArcade = "var in_val = $feature." + label_field + "\n" +
    "var decimal_val_threshold = 1" + "\n" +
    "if (in_val &amp;gt;= decimal_val_threshold) {" +
    " return Text(Round(in_val, 0), '#,###')" +
    "} else {" +
    " return ' &amp;lt;1'" +
    "}";
const nameClass = {
    labelPlacement: "always-horizontal",
    labelExpressionInfo: {
        expression: nameArcade
    },
    minScale: min_scale,
    symbol: createTextSymbol("white", "black")
};
function createTextSymbol(color, halo_color) {
    return {
        type: "text",
        font: {
            size: 12,
            weight: "bold"
        },
        color: color,
        haloColor: halo_color,
        haloSize: 1
    };
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Map view of labels:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_0-1677474707644.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63749i77B5AFDDC8E3C898/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_0-1677474707644.png" alt="julian_svcs_0-1677474707644.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PDF showing wrapped labels:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_1-1677474791018.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63750i647595D7C33A568E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_1-1677474791018.png" alt="julian_svcs_1-1677474791018.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 05:14:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-wrapping-in-web-map-export/m-p/1261905#M80388</guid>
      <dc:creator>julian_svcs</dc:creator>
      <dc:date>2023-02-27T05:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Label wrapping in web map export</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-wrapping-in-web-map-export/m-p/1262092#M80394</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/427190"&gt;@julian_svcs&lt;/a&gt;,&amp;nbsp;thanks for sharing your issue here. It looks like this might be due to an issue with the print service, we are currently investigating.&lt;/P&gt;&lt;P&gt;The issue is probably caused by the comma and the space constraints, because the comma is &lt;SPAN&gt;a default stacking separator, and it looks like the wrapping only occurs where the space is tight. One workaround suggestion would be to set the deconflictionStrategy to none and see if that helps (or makes it look worse).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#deconflictionStrategy" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#deconflictionStrategy&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another workaround option would be to try returning a number instead of a string from the Arcade expression.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 18:59:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-wrapping-in-web-map-export/m-p/1262092#M80394</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2023-02-27T18:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Label wrapping in web map export</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-wrapping-in-web-map-export/m-p/1262156#M80395</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;It is the comma in the label when it is printed (which is not the same as the map's labels). It doesn't seem to be because of the tight spaces. See the different scales and how the behave differently. There is also an example of the labels as a number. This is with&amp;nbsp;&lt;EM&gt;&lt;SPAN&gt;deconflictionStrategy&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"none"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_0-1677532601686.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63791iF666081D16A7032F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_0-1677532601686.png" alt="julian_svcs_0-1677532601686.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_1-1677532616346.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63792iAD1F9E0D59781952/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_1-1677532616346.png" alt="julian_svcs_1-1677532616346.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_2-1677532640044.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63793iA88170C8E69C56F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_2-1677532640044.png" alt="julian_svcs_2-1677532640044.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_3-1677532654731.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63794iFB08FB248DF86D95/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_3-1677532654731.png" alt="julian_svcs_3-1677532654731.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 21:20:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-wrapping-in-web-map-export/m-p/1262156#M80395</guid>
      <dc:creator>julian_svcs</dc:creator>
      <dc:date>2023-02-27T21:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Label wrapping in web map export</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-wrapping-in-web-map-export/m-p/1262416#M80408</link>
      <description>&lt;P&gt;Ok, thanks for trying out those potential workarounds. We'll continue investigating the print service, and will update this thread when there is something useful to share.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 13:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-wrapping-in-web-map-export/m-p/1262416#M80408</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2023-02-28T13:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Label wrapping in web map export</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-wrapping-in-web-map-export/m-p/1332964#M82336</link>
      <description>&lt;P&gt;Our team is also experiencing this issue.&amp;nbsp; Have any viable workarounds or solutions been discovered?&lt;/P&gt;&lt;P&gt;&amp;nbsp;- Jake&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 15:32:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-wrapping-in-web-map-export/m-p/1332964#M82336</guid>
      <dc:creator>JakeMatthys</dc:creator>
      <dc:date>2023-09-27T15:32:08Z</dc:date>
    </item>
  </channel>
</rss>

