<?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 Selected feature's generalized geometry does not recalculate on zoom in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-feature-s-generalized-geometry-does-not/m-p/1244853#M79758</link>
    <description>&lt;P&gt;JS API v3&lt;/P&gt;&lt;P&gt;When I select a feature on a zoomed-out map and then zoom in, the selected feature still has the generalized geometry from when the map was zoomed out. All other features in the layer get their geometry recalculated. If I unselect the feature and trigger a zoom-end event, the geometry of that feature gets recalculated again. What am I doing wrong?&lt;/P&gt;&lt;P&gt;I have tried to set maxAllowableOffset to 0 on the query used for selection but no change.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorSafar_0-1672751916705.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59613i9FB3EA6ED78D5EAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorSafar_0-1672751916705.png" alt="ViktorSafar_0-1672751916705.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is how I select features:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var query = new Query();
query.geometry = evt.mapPoint;
query.returnGeometry = true;
query.outSpatialReference = theMap.spatialReference
query.maxAllowableOffset = 0;

probedLayer.clearSelection();
probedLayer.selectFeatures(query, FeatureLayer.SELECTION_NEW,
  (features) =&amp;gt; {
     mapClickSearchFeaturesResultsHandler(features, probedLayer)
   },
   err =&amp;gt; {
     console.log(err);
     debugger;
   })&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 13:24:30 GMT</pubDate>
    <dc:creator>ViktorSafar</dc:creator>
    <dc:date>2023-01-03T13:24:30Z</dc:date>
    <item>
      <title>Selected feature's generalized geometry does not recalculate on zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-feature-s-generalized-geometry-does-not/m-p/1244853#M79758</link>
      <description>&lt;P&gt;JS API v3&lt;/P&gt;&lt;P&gt;When I select a feature on a zoomed-out map and then zoom in, the selected feature still has the generalized geometry from when the map was zoomed out. All other features in the layer get their geometry recalculated. If I unselect the feature and trigger a zoom-end event, the geometry of that feature gets recalculated again. What am I doing wrong?&lt;/P&gt;&lt;P&gt;I have tried to set maxAllowableOffset to 0 on the query used for selection but no change.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorSafar_0-1672751916705.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59613i9FB3EA6ED78D5EAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorSafar_0-1672751916705.png" alt="ViktorSafar_0-1672751916705.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is how I select features:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var query = new Query();
query.geometry = evt.mapPoint;
query.returnGeometry = true;
query.outSpatialReference = theMap.spatialReference
query.maxAllowableOffset = 0;

probedLayer.clearSelection();
probedLayer.selectFeatures(query, FeatureLayer.SELECTION_NEW,
  (features) =&amp;gt; {
     mapClickSearchFeaturesResultsHandler(features, probedLayer)
   },
   err =&amp;gt; {
     console.log(err);
     debugger;
   })&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 13:24:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-feature-s-generalized-geometry-does-not/m-p/1244853#M79758</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-01-03T13:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selected feature's generalized geometry does not recalculate on zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-feature-s-generalized-geometry-does-not/m-p/1248464#M79912</link>
      <description>&lt;P&gt;I have made a sample replicating the bug&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/safarviktor/arcgis-js3-selected-feature-bug" target="_blank"&gt;https://github.com/safarviktor/arcgis-js3-selected-feature-bug&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 14:01:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-feature-s-generalized-geometry-does-not/m-p/1248464#M79912</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-01-16T14:01:48Z</dc:date>
    </item>
  </channel>
</rss>

