<?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: How to create a renderer subject to the zoom level, LOD, or scale? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-a-renderer-subject-to-the-zoom-level/m-p/1321263#M82062</link>
    <description>&lt;P&gt;Unfortunately the ScaleDependentRenderer was &lt;A href="https://developers.arcgis.com/javascript/latest/functionality-matrix/#esrirenderers" target="_self"&gt;not migrated&lt;/A&gt; from 3x to 4x.&amp;nbsp; In addition, unlike in 3.x, you cannot create custom renderer modules in 4.x applications.&amp;nbsp; Therefore, you'll have to approach this differently in 4.x.&lt;/P&gt;&lt;P&gt;Basically, a ScaleDependentRenderer was a collection of other renderers, one of which would become active at a given scale range.&amp;nbsp; Therefore, in a 4.x application, you'll need to (1) create that collection of other renderers manually, (2) watch the scale of the view, and when it changes, (3) determine which renderer from the collection your layer should be using.&lt;/P&gt;&lt;P&gt;There's also more information in &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/symbols-zoom-match-with-map-zoom-in-4-x-version/m-p/1015310" target="_self"&gt;this thread&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 17:27:29 GMT</pubDate>
    <dc:creator>JoelBennett</dc:creator>
    <dc:date>2023-08-22T17:27:29Z</dc:date>
    <item>
      <title>How to create a renderer subject to the zoom level, LOD, or scale?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-a-renderer-subject-to-the-zoom-level/m-p/1321095#M82055</link>
      <description>&lt;P&gt;I would like to have a ClassBreakRenderer that could remove the polygon outline when the zoom level/LOD/Scale is below a certain threshold. How can I do it?&lt;/P&gt;&lt;P&gt;I can only find the `&lt;SPAN&gt;ScaleDependentRenderer` in&amp;nbsp;&lt;/SPAN&gt;legacy documentation: &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/scaledependentrenderer-amd.html," target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/scaledependentrenderer-amd.html&lt;/A&gt;&amp;nbsp;is the closest result; however, there is no such class available in the latest JS SDK.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 12:24:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-a-renderer-subject-to-the-zoom-level/m-p/1321095#M82055</guid>
      <dc:creator>ChungLam</dc:creator>
      <dc:date>2023-08-22T12:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a renderer subject to the zoom level, LOD, or scale?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-a-renderer-subject-to-the-zoom-level/m-p/1321263#M82062</link>
      <description>&lt;P&gt;Unfortunately the ScaleDependentRenderer was &lt;A href="https://developers.arcgis.com/javascript/latest/functionality-matrix/#esrirenderers" target="_self"&gt;not migrated&lt;/A&gt; from 3x to 4x.&amp;nbsp; In addition, unlike in 3.x, you cannot create custom renderer modules in 4.x applications.&amp;nbsp; Therefore, you'll have to approach this differently in 4.x.&lt;/P&gt;&lt;P&gt;Basically, a ScaleDependentRenderer was a collection of other renderers, one of which would become active at a given scale range.&amp;nbsp; Therefore, in a 4.x application, you'll need to (1) create that collection of other renderers manually, (2) watch the scale of the view, and when it changes, (3) determine which renderer from the collection your layer should be using.&lt;/P&gt;&lt;P&gt;There's also more information in &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/symbols-zoom-match-with-map-zoom-in-4-x-version/m-p/1015310" target="_self"&gt;this thread&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 17:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-a-renderer-subject-to-the-zoom-level/m-p/1321263#M82062</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-08-22T17:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a renderer subject to the zoom level, LOD, or scale?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-a-renderer-subject-to-the-zoom-level/m-p/1324190#M82122</link>
      <description>&lt;P&gt;Thank you, with your information I managed to dig out a &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/visualization-heatmap-scale/" target="_self"&gt;simple sample&lt;/A&gt; that serves the purpose &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 01:12:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-a-renderer-subject-to-the-zoom-level/m-p/1324190#M82122</guid>
      <dc:creator>ChungLam</dc:creator>
      <dc:date>2023-08-31T01:12:43Z</dc:date>
    </item>
  </channel>
</rss>

