<?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: Issue with TextSymbol HaloSize in Chrome in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749410#M69334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've seen problems&amp;nbsp;with the textHalo in Chrome in certain scenarios and have a couple of open issues for it. This one looks slightly different though. Can you send a live test case so we can check it out further?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2017 21:42:52 GMT</pubDate>
    <dc:creator>KristianEkenes</dc:creator>
    <dc:date>2017-01-19T21:42:52Z</dc:date>
    <item>
      <title>Issue with TextSymbol HaloSize in Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749404#M69328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having an issue with the Halo size of TextSymbols in Chrome. I haven't been able to see a pattern yet, but it happens frequently. Often the HaloSize seems to be 1 less then asked. For instance if I ask for a HaloSize of 1, some will be at 0. If I ask for a HaloSize of 2, some will be at 1. If I load the exact same graphics in Firefox, the Halos are fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's screenshots from our application. In this specific case we add TextSymbols to measure polygon segments. All properties are the same for each TextSymbol, except for the angle and actual text used. Note that the surface labels in the middle of each polygons never have this issue, only the ones along each polygon segments. In this shot there 3 symbols that lost their halo in Chrome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Although this might be a bug specific to Chrome, I still thought I'd ask here and see if others got the same issue.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're using the API 3.19&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chrome&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="300473" alt="Chrome" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/300473_Screenshot.png" style="width: 620px; height: 327px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firefox&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="300474" alt="Firefox" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/300474_Screenshot-1.png" style="width: 620px; height: 331px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yohan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE 2017-08-13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I finally got some time to look at this issue again, at least to find a workaround. I ended just doing a lot of tests and compiling a list of the problem angles, then just increasing the halo size by 1 for those angles. Seems to work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (has("chrome")){&lt;BR /&gt; var problemAngles = [8, 11, 27, 28, 34, 37, 40, 43, 44, 46, 47, 50, 53, 56, 62, 63, 79, 82, 98, 101, 117, 118, 124, 127, 130, 133, 134, 136, 137, 140, 143, 146, 152, 153, 169, 172, 180, 188, 191, 207, 208, 214, 217, 220, 223, 224, 226, 227, 230, 233, 236, 242, 243, 259, 262, 278, 281, 297, 298, 304, 307, 310, 313, 314, 316, 317, 320, 323, 326, 332, 333, 349, 352]; &lt;BR /&gt; var haloSize = problemAngles.indexOf(angle) &amp;gt; -1 ? 2 : 1;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not that this list does not handle negative angles, but you can just add 180&amp;nbsp;when this is the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps someone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 18:53:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749404#M69328</guid>
      <dc:creator>YohanBienvenue</dc:creator>
      <dc:date>2017-01-12T18:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with TextSymbol HaloSize in Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749405#M69329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an app that can be used to test? &amp;nbsp;It would be helpful for diagnosing/replicating the problem. &amp;nbsp;Is the text added as a label layer or just as graphics?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 19:41:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749405#M69329</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2017-01-12T19:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with TextSymbol HaloSize in Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749406#M69330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No it's proprietary code and these labels are not available without an&amp;nbsp;account to log in the application.&lt;/P&gt;&lt;P&gt;They are just Graphic objects. Here's the snippet of code that actually adds them to a GraphicsLayer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var font = new Font("12pt");&lt;BR /&gt; font.setFamily("Arial");&lt;BR /&gt; font.setWeight(Font.WEIGHT_BOLD);&lt;BR /&gt; font.setDecoration("none");&lt;BR /&gt; font.setStyle(Font.STYLE_NORMAL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var symbol = new TextSymbol(this.textInput.value);&lt;BR /&gt; symbol.setAlign(TextSymbol.ALIGN_MIDDLE);&lt;BR /&gt; symbol.setColor(new Color("#2A506F"));&lt;BR /&gt; symbol.setFont(font);&lt;BR /&gt; symbol.setText(distance.toFixed(2).replace('.', ',') + " " + aziUnits.codeToShortText(unitCode));&lt;BR /&gt; symbol.setHaloColor(new Color([255, 255, 255, 1]));&lt;BR /&gt; symbol.setHaloSize(1);&lt;BR /&gt; symbol.setAngle(angle);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Add the measure label to the graphics layer&lt;BR /&gt; var textGraphic = new Graphic(m4, symbol);&lt;BR /&gt; textGraphic.tool = this.toolName;&lt;BR /&gt; textGraphic.m1 = m1; // We save m1 and m2 for distance recalculation when the unit is changed (See unit-change)&lt;BR /&gt; textGraphic.m2 = m2;&lt;BR /&gt; textGraphic.initial = {&lt;BR /&gt; mapScale: this.map.getScale(),&lt;BR /&gt; fontSize: font.size&lt;BR /&gt; };&lt;BR /&gt; //this.map.graphics.add(textGraphic);&lt;BR /&gt; this.drawGraphicsLayer.add(textGraphic);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 19:58:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749406#M69330</guid>
      <dc:creator>YohanBienvenue</dc:creator>
      <dc:date>2017-01-12T19:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with TextSymbol HaloSize in Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749407#M69331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to modify my measure widget&amp;nbsp;&lt;A href="https://community.esri.com/docs/DOC-3209"&gt;Measure Widget 2.1 for Web App Builder&lt;/A&gt;&amp;nbsp;to have a halo. &amp;nbsp;It is pretty subtle but it appears to me, at certain angles the text halo disappears. &amp;nbsp;You can experiment yourself with my widget at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.yakimawa.gov/measure/" title="https://gis.yakimawa.gov/measure/"&gt;ArcGIS Web Application&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it in other browsers and the halo does appear to work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 21:56:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749407#M69331</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2017-01-12T21:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with TextSymbol HaloSize in Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749408#M69332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neat widget.&lt;/P&gt;&lt;P&gt;I really appreciate you testing this on your side and confirming this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's harder to see on your pale basemap, but yeah if I test it on a darker patch (for better contrast) I could clearly see you have the same issue at steeper angles. So at least now I know it's not something related to my code and there's probably not much I can do. I did notice it seems to happen more frequently at steep angles, but not all the time, and I can't see a specific pattern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that In the end if it's really a Chrome bug and there's nothing I can do I'll probably just increase the halo size by 1. I'll still have some thinner halos when the bug happens, but at least I won't have text with no halos at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I do find some fix or workaround I'll let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 22:28:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749408#M69332</guid>
      <dc:creator>YohanBienvenue</dc:creator>
      <dc:date>2017-01-12T22:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with TextSymbol HaloSize in Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749409#M69333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also inspected the code for each of the text items and it all looks identical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;text fill="rgb(0, 0, 0)" fill-opacity="1" stroke="none" stroke-opacity="0" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="690" y="295" text-anchor="middle" text-decoration="undefined" rotate="0" kerning="auto" text-rendering="auto" font-style="italic" font-variant="normal" font-weight="bold" font-size="20" font-family="Courier" dominant-baseline="alphabetic" filter="url(#halo_map_graphicsLayer3_255_255_255_1_2)" transform="matrix(0.62124526,-0.78361618,0.78361618,0.62124526,20.17399446,647.42781427)" fill-rule="evenodd"&amp;gt;190.6'&amp;lt;/text&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are probably right. &amp;nbsp;It is most likely a Chrome bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 22:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749409#M69333</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2017-01-12T22:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with TextSymbol HaloSize in Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749410#M69334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've seen problems&amp;nbsp;with the textHalo in Chrome in certain scenarios and have a couple of open issues for it. This one looks slightly different though. Can you send a live test case so we can check it out further?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 21:42:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749410#M69334</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2017-01-19T21:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with TextSymbol HaloSize in Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749411#M69335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had posted a live example previously in this thread at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.yakimawa.gov/measure/" title="https://gis.yakimawa.gov/measure/"&gt;ArcGIS Web Application&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is an example using my measure widget in WAB. &amp;nbsp;Zoom in to a darker area of the basemap for better contrast. &amp;nbsp;Select the line or polyline tool and start drawing. &amp;nbsp;As you rotate the line you are drawing, you will see the text measurement with a halo. &amp;nbsp;As you rotate you will see some angles have a smaller halo than others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 22:01:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749411#M69335</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2017-01-19T22:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with TextSymbol HaloSize in Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749412#M69336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 00:18:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749412#M69336</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2017-01-20T00:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with TextSymbol HaloSize in Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749413#M69337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 00:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-textsymbol-halosize-in-chrome/m-p/749413#M69337</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2017-01-20T00:36:44Z</dc:date>
    </item>
  </channel>
</rss>

