<?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: Symbol remains clustered when zooming in with Feature Reduction enabled in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/symbol-remains-clustered-when-zooming-in-with/m-p/1086698#M74188</link>
    <description>&lt;P&gt;You watch the scale and remove the feature reduction cluster at a certain scale.&lt;/P&gt;&lt;P&gt;You can see this happening on this example:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=featurereduction-cluster-query" target="_self"&gt;Sample&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Key code:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        layer
          .when()
          .then(generateClusterConfig)
          .then(async (featureReduction) =&amp;gt; {
            // sets generated cluster configuration on the layer
            layer.featureReduction = featureReduction;

            // the layer view is needed for querying clusters
            layerView = await view.whenLayerView(layer);

            // Disable clustering when user zooms beyond a 1:50,000 scale level
            // Re-enable clustering when the user zooms out to a scale smaller than 1:50,000
            view.watch("scale", (scale) =&amp;gt; {
              layer.featureReduction =
                view.scale &amp;gt; 50000 ? featureReduction : null;
            });
          })
          .catch((error) =&amp;gt; {
            console.error(error);
          });&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 06 Aug 2021 17:40:30 GMT</pubDate>
    <dc:creator>rogenjh</dc:creator>
    <dc:date>2021-08-06T17:40:30Z</dc:date>
    <item>
      <title>Symbol remains clustered when zooming in with Feature Reduction enabled</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/symbol-remains-clustered-when-zooming-in-with/m-p/1086553#M74177</link>
      <description>&lt;P&gt;I am have Feature Reduction enabled on a layer and at some point when zooming in to a cluster it should break apart into single graphics. This does not happen for some clusters no matter how much I zoom in.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried changing the cluster radius, going as small as 20, but I get the same result. This appears to be happening for any cluster when the features are less than 1000 meters apart:&lt;/P&gt;&lt;P&gt;Here is the cluster as it appears in the app:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="noSingleGraphics2.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20349iCD3BAE87612D5893/image-size/medium?v=v2&amp;amp;px=400" role="button" title="noSingleGraphics2.png" alt="noSingleGraphics2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Here are the actual features as they should appear:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="noSingleGraphics3.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20348iCC279A0942DC2219/image-size/large?v=v2&amp;amp;px=999" role="button" title="noSingleGraphics3.png" alt="noSingleGraphics3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the single graphics to appear in the app because user need to be able to click the feature to get more info. Please let me know if there is a fix.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 13:24:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/symbol-remains-clustered-when-zooming-in-with/m-p/1086553#M74177</guid>
      <dc:creator>FranklinAlexander</dc:creator>
      <dc:date>2021-08-06T13:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Symbol remains clustered when zooming in with Feature Reduction enabled</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/symbol-remains-clustered-when-zooming-in-with/m-p/1086698#M74188</link>
      <description>&lt;P&gt;You watch the scale and remove the feature reduction cluster at a certain scale.&lt;/P&gt;&lt;P&gt;You can see this happening on this example:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=featurereduction-cluster-query" target="_self"&gt;Sample&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Key code:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        layer
          .when()
          .then(generateClusterConfig)
          .then(async (featureReduction) =&amp;gt; {
            // sets generated cluster configuration on the layer
            layer.featureReduction = featureReduction;

            // the layer view is needed for querying clusters
            layerView = await view.whenLayerView(layer);

            // Disable clustering when user zooms beyond a 1:50,000 scale level
            // Re-enable clustering when the user zooms out to a scale smaller than 1:50,000
            view.watch("scale", (scale) =&amp;gt; {
              layer.featureReduction =
                view.scale &amp;gt; 50000 ? featureReduction : null;
            });
          })
          .catch((error) =&amp;gt; {
            console.error(error);
          });&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 06 Aug 2021 17:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/symbol-remains-clustered-when-zooming-in-with/m-p/1086698#M74188</guid>
      <dc:creator>rogenjh</dc:creator>
      <dc:date>2021-08-06T17:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Symbol remains clustered when zooming in with Feature Reduction enabled</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/symbol-remains-clustered-when-zooming-in-with/m-p/1087435#M74232</link>
      <description>&lt;P&gt;Thank you for that suggestion. I am using the 3x API, so I had to adapt the code accordingly but it's working.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 11:59:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/symbol-remains-clustered-when-zooming-in-with/m-p/1087435#M74232</guid>
      <dc:creator>FranklinAlexander</dc:creator>
      <dc:date>2021-08-10T11:59:03Z</dc:date>
    </item>
  </channel>
</rss>

