<?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: Move Graphic in FeatureLayer to new coordinates in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/move-graphic-in-featurelayer-to-new-coordinates/m-p/1204181#M78346</link>
    <description>&lt;P&gt;I am now able to delete, and then add new Features to get what I want. I will look into the the updateFeatures again later on and update this thread for those who are interested.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2022 14:11:24 GMT</pubDate>
    <dc:creator>quooston</dc:creator>
    <dc:date>2022-08-18T14:11:24Z</dc:date>
    <item>
      <title>Move Graphic in FeatureLayer to new coordinates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/move-graphic-in-featurelayer-to-new-coordinates/m-p/1204137#M78344</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using version 4.24.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a FeatureLayer and I'm providing Features to it on the client-side. I construct Graphics for the coordinates returned from my application API, and put them on a map. When I hit my API after the initial and successful operation, which instantiates the FeatureLayer and provides it it's initial source (the collection of features I have constructed on the client), I would like to update the coordinates of those features on the map whenever I request an update from my API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My assumption was that I could use `featureLayer.applyEdits` and pass along the updated features, but nothing happens. The result of that operation states that X items were updated, but the map does up change (the features remain stationary). I have also tried to delete features using `featureLayer.applyEdits` with the `deletedFeatures`... but with the same result. The result states that X items were deleted... but they're still on the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before I start removing everything to put it back at new coordinates, I thought I would check to see if there is something wrong with my approach. I would hate to be removing thousands of features and putting them back, just to update their coordinates, on a regular basis.&lt;/P&gt;&lt;P&gt;I was able to achieve this very easily using Leaflet and MapBox previously, so I'm sure I must be missing something here...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 11:59:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/move-graphic-in-featurelayer-to-new-coordinates/m-p/1204137#M78344</guid>
      <dc:creator>quooston</dc:creator>
      <dc:date>2022-08-18T11:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Move Graphic in FeatureLayer to new coordinates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/move-graphic-in-featurelayer-to-new-coordinates/m-p/1204152#M78345</link>
      <description>&lt;P&gt;I am now able to remove Features using `applyEdits` and `deletedFeatures`, but I am still not able to update the coordinates of the Features.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The mistake I made was that I was specifying a custom attribute as the `objectId`, but it was a guid. No errors were reported and my Features were rendering successfully, but the custom attribute (in my case a guid) was not appropriate for `applyEdits`. By adding another attribute with a type of&amp;nbsp; `oid`, I am now able to delete the features.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm starting to wonder if updates are limited to attributes and not the geometry of the Graphic...&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 13:03:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/move-graphic-in-featurelayer-to-new-coordinates/m-p/1204152#M78345</guid>
      <dc:creator>quooston</dc:creator>
      <dc:date>2022-08-18T13:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Move Graphic in FeatureLayer to new coordinates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/move-graphic-in-featurelayer-to-new-coordinates/m-p/1204181#M78346</link>
      <description>&lt;P&gt;I am now able to delete, and then add new Features to get what I want. I will look into the the updateFeatures again later on and update this thread for those who are interested.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 14:11:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/move-graphic-in-featurelayer-to-new-coordinates/m-p/1204181#M78346</guid>
      <dc:creator>quooston</dc:creator>
      <dc:date>2022-08-18T14:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Move Graphic in FeatureLayer to new coordinates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/move-graphic-in-featurelayer-to-new-coordinates/m-p/1204217#M78351</link>
      <description>&lt;P&gt;Here's an example showing how you can update feature geometries using applyEdits:&amp;nbsp;&lt;A href="https://codepen.io/annefitz/pen/jOzXQxv?editors=100" target="_blank"&gt;https://codepen.io/annefitz/pen/jOzXQxv?editors=100&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 15:47:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/move-graphic-in-featurelayer-to-new-coordinates/m-p/1204217#M78351</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2022-08-18T15:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Move Graphic in FeatureLayer to new coordinates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/move-graphic-in-featurelayer-to-new-coordinates/m-p/1204378#M78358</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/115266"&gt;@AnneFitz&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's good to know that this is possible. I think querying the features and then updating them as you have done here is better. I have been trying to do the update by creating a feature and setting the objectId and then providing the updated geometry. Something there has been off, as I experienced with the delete comment above.&lt;/P&gt;&lt;P&gt;Thanks again&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 01:01:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/move-graphic-in-featurelayer-to-new-coordinates/m-p/1204378#M78358</guid>
      <dc:creator>quooston</dc:creator>
      <dc:date>2022-08-19T01:01:39Z</dc:date>
    </item>
  </channel>
</rss>

