<?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 Adjusting text symbol attributes on zoom in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adjusting-text-symbol-attributes-on-zoom/m-p/559964#M52235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My feature layer has text symbols.&amp;nbsp; I need to dynamically adjust the font size property of the text or hide them altogether, based on the zoom level of the mapview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the pattern to achieve this? I have a watch function on the view.stationary property so I know when the zoom is occurring.&amp;nbsp; However I can't just loop through the layers and change the fontSize property and expect it to reflect on screen -&amp;nbsp;There is no binding between the layer instances and the DOM.&amp;nbsp; Do I just need to brut force it - Delete textSymbol graphics and re-add them with a different font-size?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jan 2018 18:52:35 GMT</pubDate>
    <dc:creator>yangwen</dc:creator>
    <dc:date>2018-01-15T18:52:35Z</dc:date>
    <item>
      <title>Adjusting text symbol attributes on zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adjusting-text-symbol-attributes-on-zoom/m-p/559964#M52235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My feature layer has text symbols.&amp;nbsp; I need to dynamically adjust the font size property of the text or hide them altogether, based on the zoom level of the mapview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the pattern to achieve this? I have a watch function on the view.stationary property so I know when the zoom is occurring.&amp;nbsp; However I can't just loop through the layers and change the fontSize property and expect it to reflect on screen -&amp;nbsp;There is no binding between the layer instances and the DOM.&amp;nbsp; Do I just need to brut force it - Delete textSymbol graphics and re-add them with a different font-size?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 18:52:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adjusting-text-symbol-attributes-on-zoom/m-p/559964#M52235</guid>
      <dc:creator>yangwen</dc:creator>
      <dc:date>2018-01-15T18:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting text symbol attributes on zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adjusting-text-symbol-attributes-on-zoom/m-p/559965#M52236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Yang,&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;if using 4.6 there is a refresh method on most layers. Have you tried that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 20:22:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adjusting-text-symbol-attributes-on-zoom/m-p/559965#M52236</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-15T20:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting text symbol attributes on zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adjusting-text-symbol-attributes-on-zoom/m-p/559966#M52237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not.. the API describes it as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="" style="background: linear-gradient(#e1e1e1, #fafafa); border-top: 1px solid #dddddd; margin-bottom: 0.625rem; padding-left: 10px;"&gt;&lt;DIV class="" style="font-weight: 300; font-size: 1.414rem; margin: 0.2rem 0px 0.4rem;"&gt;refresh&lt;SPAN class="" style="font-size: 1.25rem;"&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: 1rem; margin: 0px 0px 0.625rem 0.775rem;"&gt;&lt;SPAN class="" style="font-weight: 500;"&gt;Since:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ArcGIS API for JavaScript 4.6&lt;/DIV&gt;&lt;DIV class="" style="margin-bottom: 0.625rem;"&gt;&lt;P style="margin-bottom: 1.55rem;"&gt;Fetches all the data for the layer.&lt;/P&gt;&lt;P style="margin-bottom: 1.55rem;"&gt;It implies the use case where the Layer is sourced from a service URL..&amp;nbsp; However it may also&amp;nbsp;include the manual instantiation method.&amp;nbsp; I'll give it a try.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 20:25:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adjusting-text-symbol-attributes-on-zoom/m-p/559966#M52237</guid>
      <dc:creator>yangwen</dc:creator>
      <dc:date>2018-01-15T20:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting text symbol attributes on zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adjusting-text-symbol-attributes-on-zoom/m-p/559967#M52238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 20:34:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adjusting-text-symbol-attributes-on-zoom/m-p/559967#M52238</guid>
      <dc:creator>yangwen</dc:creator>
      <dc:date>2018-01-15T20:34:17Z</dc:date>
    </item>
  </channel>
</rss>

