<?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 Issue with new text symbol halos with LabelClass in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-new-text-symbol-halos-with-labelclass/m-p/723807#M67199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The new text symbol halos are great. I have encountered an issue when providing the symbol via the LabelClass constructor, where the halo color is always black.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Halo color is correct when assigning label.symbol:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;label = new LabelClass({
&amp;nbsp; labelExpressionInfo: {
&amp;nbsp;&amp;nbsp;&amp;nbsp; value: '{WSC_ID}'
&amp;nbsp; },
&amp;nbsp; minScale: 3000,
&amp;nbsp; labelPlacement: 'above-center'
});

label.symbol = jsonUtils.fromJson({
&amp;nbsp; type: 'esriTS',
&amp;nbsp; color: [0, 0, 255],
&amp;nbsp; haloColor: [255, 255, 255],
&amp;nbsp; haloSize: 1,
&amp;nbsp; font: {
&amp;nbsp;&amp;nbsp;&amp;nbsp; size: 8,
&amp;nbsp;&amp;nbsp;&amp;nbsp; weight: 'bold',
&amp;nbsp;&amp;nbsp;&amp;nbsp; family: 'sans-serif'
&amp;nbsp; }
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Halo color is black when symbol passed via constructor:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;label = new LabelClass({
&amp;nbsp; labelExpressionInfo: {
&amp;nbsp;&amp;nbsp;&amp;nbsp; value: '{WSC_ID}'
&amp;nbsp; },
&amp;nbsp; minScale: 3000,
&amp;nbsp; labelPlacement: 'above-center',
&amp;nbsp; symbol: jsonUtils.fromJson({
&amp;nbsp;&amp;nbsp;&amp;nbsp; type: 'esriTS',
&amp;nbsp;&amp;nbsp;&amp;nbsp; color: [0, 0, 255],
&amp;nbsp;&amp;nbsp;&amp;nbsp; haloColor: [255, 255, 255],
&amp;nbsp;&amp;nbsp;&amp;nbsp; haloSize: 1,
&amp;nbsp;&amp;nbsp;&amp;nbsp; font: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; size: 8,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weight: 'bold',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; family: 'sans-serif'
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; })
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just an heads up and thanks for this feature.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 06:57:31 GMT</pubDate>
    <dc:creator>BenFousek</dc:creator>
    <dc:date>2021-12-12T06:57:31Z</dc:date>
    <item>
      <title>Issue with new text symbol halos with LabelClass</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-new-text-symbol-halos-with-labelclass/m-p/723807#M67199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The new text symbol halos are great. I have encountered an issue when providing the symbol via the LabelClass constructor, where the halo color is always black.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Halo color is correct when assigning label.symbol:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;label = new LabelClass({
&amp;nbsp; labelExpressionInfo: {
&amp;nbsp;&amp;nbsp;&amp;nbsp; value: '{WSC_ID}'
&amp;nbsp; },
&amp;nbsp; minScale: 3000,
&amp;nbsp; labelPlacement: 'above-center'
});

label.symbol = jsonUtils.fromJson({
&amp;nbsp; type: 'esriTS',
&amp;nbsp; color: [0, 0, 255],
&amp;nbsp; haloColor: [255, 255, 255],
&amp;nbsp; haloSize: 1,
&amp;nbsp; font: {
&amp;nbsp;&amp;nbsp;&amp;nbsp; size: 8,
&amp;nbsp;&amp;nbsp;&amp;nbsp; weight: 'bold',
&amp;nbsp;&amp;nbsp;&amp;nbsp; family: 'sans-serif'
&amp;nbsp; }
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Halo color is black when symbol passed via constructor:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;label = new LabelClass({
&amp;nbsp; labelExpressionInfo: {
&amp;nbsp;&amp;nbsp;&amp;nbsp; value: '{WSC_ID}'
&amp;nbsp; },
&amp;nbsp; minScale: 3000,
&amp;nbsp; labelPlacement: 'above-center',
&amp;nbsp; symbol: jsonUtils.fromJson({
&amp;nbsp;&amp;nbsp;&amp;nbsp; type: 'esriTS',
&amp;nbsp;&amp;nbsp;&amp;nbsp; color: [0, 0, 255],
&amp;nbsp;&amp;nbsp;&amp;nbsp; haloColor: [255, 255, 255],
&amp;nbsp;&amp;nbsp;&amp;nbsp; haloSize: 1,
&amp;nbsp;&amp;nbsp;&amp;nbsp; font: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; size: 8,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weight: 'bold',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; family: 'sans-serif'
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; })
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just an heads up and thanks for this feature.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:57:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-new-text-symbol-halos-with-labelclass/m-p/723807#M67199</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2021-12-12T06:57:31Z</dc:date>
    </item>
  </channel>
</rss>

