<?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 A Bug? Halo Blurry and Weird Behavior Around Text when using Text Class/Label Class in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-bug-halo-blurry-and-weird-behavior-around-text/m-p/380795#M35350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning.&amp;nbsp; I recently uncovered what appears to be a bug&amp;nbsp;when attempting to label a feature layer and using a halo around the label.&amp;nbsp; The behavior is different in all three browsers.&amp;nbsp; First, here is my code used for producing the halo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Classes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "esri/symbols/TextSymbol",&lt;BR /&gt;&amp;nbsp; "esri/renderers/SimpleRenderer",&lt;BR /&gt;&amp;nbsp; "esri/layers/LabelClass",&lt;BR /&gt;&amp;nbsp; "esri/Color",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;function(&lt;/P&gt;&lt;P&gt;&amp;nbsp; TextSymbol,&lt;BR /&gt;&amp;nbsp; SimpleRenderer,&lt;BR /&gt;&amp;nbsp; LabelClass,&lt;BR /&gt;&amp;nbsp; Color,&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code for Defining Text and the Halo:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Create Renderer for Gracelawn Cemetery Spaces Layer to Override Default Symbology&lt;BR /&gt;&amp;nbsp; var glSpacesColor = new Color([0,0,0]); // Set Text Color to Black&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; // Create a Text Symbol to Define the Style of the Labels&lt;BR /&gt;&amp;nbsp; var glSpacesLabels = new TextSymbol().setColor(glSpacesColor);&lt;BR /&gt;&amp;nbsp; glSpacesLabels.font.setSize("8pt");&lt;BR /&gt;&amp;nbsp; glSpacesLabels.font.setFamily("arial");&lt;BR /&gt;&amp;nbsp; glSpacesLabels.setHaloSize("2");&lt;BR /&gt;&amp;nbsp; glSpacesLabels.setHaloColor([255,255,255]);&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; // Label Expression from JSON&lt;BR /&gt;&amp;nbsp; var glSpacesJSON = {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "labelExpressionInfo": {"value": "{SPACE_}"}&lt;BR /&gt;&amp;nbsp; };&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; var glSpacesLabelClass = new LabelClass(glSpacesJSON);&lt;BR /&gt;&amp;nbsp; glSpacesLabelClass.symbol = glSpacesLabels;&lt;BR /&gt;&amp;nbsp; gracelawnFL.setLabelingInfo([glSpacesLabelClass]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(see attachment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will notice that there are 3 different results with the halo:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Nov 2017 16:44:20 GMT</pubDate>
    <dc:creator>IanPeebles</dc:creator>
    <dc:date>2017-11-06T16:44:20Z</dc:date>
    <item>
      <title>A Bug? Halo Blurry and Weird Behavior Around Text when using Text Class/Label Class</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-bug-halo-blurry-and-weird-behavior-around-text/m-p/380795#M35350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning.&amp;nbsp; I recently uncovered what appears to be a bug&amp;nbsp;when attempting to label a feature layer and using a halo around the label.&amp;nbsp; The behavior is different in all three browsers.&amp;nbsp; First, here is my code used for producing the halo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Classes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "esri/symbols/TextSymbol",&lt;BR /&gt;&amp;nbsp; "esri/renderers/SimpleRenderer",&lt;BR /&gt;&amp;nbsp; "esri/layers/LabelClass",&lt;BR /&gt;&amp;nbsp; "esri/Color",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;function(&lt;/P&gt;&lt;P&gt;&amp;nbsp; TextSymbol,&lt;BR /&gt;&amp;nbsp; SimpleRenderer,&lt;BR /&gt;&amp;nbsp; LabelClass,&lt;BR /&gt;&amp;nbsp; Color,&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code for Defining Text and the Halo:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Create Renderer for Gracelawn Cemetery Spaces Layer to Override Default Symbology&lt;BR /&gt;&amp;nbsp; var glSpacesColor = new Color([0,0,0]); // Set Text Color to Black&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; // Create a Text Symbol to Define the Style of the Labels&lt;BR /&gt;&amp;nbsp; var glSpacesLabels = new TextSymbol().setColor(glSpacesColor);&lt;BR /&gt;&amp;nbsp; glSpacesLabels.font.setSize("8pt");&lt;BR /&gt;&amp;nbsp; glSpacesLabels.font.setFamily("arial");&lt;BR /&gt;&amp;nbsp; glSpacesLabels.setHaloSize("2");&lt;BR /&gt;&amp;nbsp; glSpacesLabels.setHaloColor([255,255,255]);&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; // Label Expression from JSON&lt;BR /&gt;&amp;nbsp; var glSpacesJSON = {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "labelExpressionInfo": {"value": "{SPACE_}"}&lt;BR /&gt;&amp;nbsp; };&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; var glSpacesLabelClass = new LabelClass(glSpacesJSON);&lt;BR /&gt;&amp;nbsp; glSpacesLabelClass.symbol = glSpacesLabels;&lt;BR /&gt;&amp;nbsp; gracelawnFL.setLabelingInfo([glSpacesLabelClass]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(see attachment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will notice that there are 3 different results with the halo:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 16:44:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-bug-halo-blurry-and-weird-behavior-around-text/m-p/380795#M35350</guid>
      <dc:creator>IanPeebles</dc:creator>
      <dc:date>2017-11-06T16:44:20Z</dc:date>
    </item>
  </channel>
</rss>

