<?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: Update graphic geometry on 4.0 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217812#M20238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't noticed any progress in this area. &amp;nbsp;My advice would be to wrap this functionality in functions. &amp;nbsp;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;updateGeometry&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;view&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; newGeometry&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// get layer.&amp;nbsp; either the graphic is in its own layer or it's&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// on the view' graphic layer&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; lyr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layer &lt;SPAN class="operator token"&gt;||&lt;/SPAN&gt; view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphics&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// clone old graphic and edit geometry&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; newGraphic &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;clone&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; newGraphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; newGeometry&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// remove old graphic, add new graphic&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;remove&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;graphic&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;add&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;newGraphic&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In terms of updating the popup, I would do that by hand as well. &amp;nbsp;You can programmatically open popups with view.popupManager._showPopup({graphic: &amp;lt;graphic&amp;gt;, mapPoint: &amp;lt;point geometry&amp;gt;})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using that you could write a function like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// to be called after your graphic updates and you want&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// the updates to be reflected in the pop up&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;updatePopup&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;view&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;// assuming this graphic has a point geometry&lt;/SPAN&gt;
&amp;nbsp; view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;popupManager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;_showPopup&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;graphic&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; mapPoint&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:38:40 GMT</pubDate>
    <dc:creator>ThomasSolow</dc:creator>
    <dc:date>2021-12-11T10:38:40Z</dc:date>
    <item>
      <title>Update graphic geometry on 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217805#M20231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;In the previous API version I was able to update the geometry of a graphic using the setter (e.g. myGraphic.setGeometry(new Point([lon, lat])) ). In the current version, this functionality has been replaced by watchers/observers, but it seems this is missing on graphics. I've tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;myGraphic.geometry = new Point([lon, lat])); // The obvious one

// And all these other ones...
&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;myGraphic.geometry.update(lon,lat);&lt;/SPAN&gt;
&lt;SPAN style="color: rgba(0, 0, 0, 0); font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;myGraphic.geometry.latitude = lat;&lt;/SPAN&gt;
&lt;SPAN style="color: rgba(0, 0, 0, 0); font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;myGraphic.geometry.longitude = lon;&lt;/SPAN&gt;
&lt;SPAN style="color: rgba(0, 0, 0, 0); font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;myGraphic.geometry.setLatitude(lat);&lt;/SPAN&gt;
&lt;SPAN style="color: rgba(0, 0, 0, 0); font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;myGraphic.geometry.setLongitude(lon);&lt;/SPAN&gt;
&lt;SPAN style="color: rgba(0, 0, 0, 0); font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;// Same methods using x and y, etc...&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work if you haven't added the graphic to the map / graphicsLayer, but once you do so it is stuck at that position, no matter what method you use to update the geometry. In the meantime, I've implemented a workaround where I remove the old graphic and add a new one with the new geometry, but this is not desirable since it causes a momentary flash on the screen where there are no graphics.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:38:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217805#M20231</guid>
      <dc:creator>DavidMeza</dc:creator>
      <dc:date>2021-12-11T10:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Update graphic geometry on 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217806#M20232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have almost the same question posted on gis stackexchange here &lt;A href="http://gis.stackexchange.com/questions/192880/how-do-you-change-a-graphicslayers-geometry-in-the-arcgis-api-for-javascript-4/193036#193036" title="http://gis.stackexchange.com/questions/192880/how-do-you-change-a-graphicslayers-geometry-in-the-arcgis-api-for-javascript-4/193036#193036"&gt;How do you change a GraphicsLayer's geometry in the ArcGIS API for Javascript 4.0 - Geographic Information Systems Stack…&lt;/A&gt; I came to a similar workaround, and I'm also curious if there is a better way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the momentary flash where there are no graphics is your main concern, have you tried adding your new geometry first then removing the old geometry, so instead of briefly having no graphics you will briefly have two graphics?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 20:51:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217806#M20232</guid>
      <dc:creator>TJRockefeller</dc:creator>
      <dc:date>2016-05-16T20:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Update graphic geometry on 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217807#M20233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unless I'm reading it wrong, it looks like it's &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#setAttribute"&gt;graphic.setAttribute&lt;/A&gt; under the 4.0 API&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1463433803424581" data-renderedposition="60_8_1332_16" jivemacro_uid="_1463433803424581"&gt;&lt;P&gt;graphic.setAttribute("geometry",aGeom);&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 21:23:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217807#M20233</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2016-05-16T21:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Update graphic geometry on 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217808#M20234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that out, and it does change the geometry of the graphic, but if the graphic has already been added to the map, this change is not reflected in the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I'm not sure why there is a need for the setAttribute method because you can just as easily do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14634345848796841 jive_text_macro" data-renderedposition="112_8_1332_16" jivemacro_uid="_14634345848796841" modifiedtitle="true"&gt;&lt;P&gt;graphic.geometry = aGeom;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 21:36:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217808#M20234</guid>
      <dc:creator>TJRockefeller</dc:creator>
      <dc:date>2016-05-16T21:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update graphic geometry on 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217809#M20235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hah, that's funny because in another thread about 4.0 I brought up the fact that either featureLayer.redraw or featureLayer.refresh was no longer present (and not listed under "coming soon"). ESRI's response was that the API "should" be smart enough to redraw/refresh once things change. I wonder if that's the same case here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(And later in my other thread it was mentioned that redraw/refresh would return in a later API version)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 22:04:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217809#M20235</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2016-05-16T22:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Update graphic geometry on 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217810#M20236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right now you should be able to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var g = graphic.clone();
g.geometry = newGeometry;
graphicsLayer.remove(graphic);
graphicsLayer.add(g);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:38:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217810#M20236</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-11T10:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Update graphic geometry on 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217811#M20237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I there likely to be any future progress on this? I am still having the same issue with 4.3 nearly a year after the original question. In particular I was hoping that an open popup would update as a graphic's attributes and geometry were updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 21:09:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217811#M20237</guid>
      <dc:creator>JonLynch</dc:creator>
      <dc:date>2017-04-11T21:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Update graphic geometry on 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217812#M20238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't noticed any progress in this area. &amp;nbsp;My advice would be to wrap this functionality in functions. &amp;nbsp;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;updateGeometry&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;view&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; newGeometry&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// get layer.&amp;nbsp; either the graphic is in its own layer or it's&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// on the view' graphic layer&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; lyr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layer &lt;SPAN class="operator token"&gt;||&lt;/SPAN&gt; view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphics&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// clone old graphic and edit geometry&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; newGraphic &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;clone&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; newGraphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; newGeometry&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// remove old graphic, add new graphic&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;remove&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;graphic&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;add&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;newGraphic&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In terms of updating the popup, I would do that by hand as well. &amp;nbsp;You can programmatically open popups with view.popupManager._showPopup({graphic: &amp;lt;graphic&amp;gt;, mapPoint: &amp;lt;point geometry&amp;gt;})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using that you could write a function like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// to be called after your graphic updates and you want&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// the updates to be reflected in the pop up&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;updatePopup&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;view&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;// assuming this graphic has a point geometry&lt;/SPAN&gt;
&amp;nbsp; view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;popupManager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;_showPopup&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;graphic&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; mapPoint&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:38:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-graphic-geometry-on-4-0/m-p/217812#M20238</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2021-12-11T10:38:40Z</dc:date>
    </item>
  </channel>
</rss>

