<?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 Pan while editing vertices causes edit graphic to revert to original geometry in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/pan-while-editing-vertices-causes-edit-graphic-to/m-p/374128#M34712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm observing this behaviour in v2.7 of the API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EXPECTED:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I create an edit toolbar and cause it to be activated on a feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I add or move vertices on the feature and the graphic updates accordingly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I pan the map or otherwise change the extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. The graphic of the feature I'm editing maintains the edited geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;WHAT HAPPENS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I create an edit toolbar and cause it to be activated on a feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I add or move vertices on the feature and the graphic updates accordingly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I pan the map or otherwise change the extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. The graphic of the feature I'm editing reverts to the geometry of the feature before editing began. However the vertices and ghost vertices remain in their edited position.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TO REPLICATE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Go to this sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/ed/ed_toolbar.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/ed/ed_toolbar.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Double click a feature to begin editing vertices.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Move a vertex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Pan the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is, how do I get my expected behaviour?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose you could do this (haven't tried it though):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create event handler for onVertexAdd and onVertexMoveStop, storing the new geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Create an event handler for map extent change and set the geometry of the edit feature to the last geometry set in (1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But this seems hackish. The fact that the behaviour is "weird" in the sample above is telling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Feb 2012 22:24:21 GMT</pubDate>
    <dc:creator>BenGiles</dc:creator>
    <dc:date>2012-02-19T22:24:21Z</dc:date>
    <item>
      <title>Pan while editing vertices causes edit graphic to revert to original geometry</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/pan-while-editing-vertices-causes-edit-graphic-to/m-p/374128#M34712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm observing this behaviour in v2.7 of the API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EXPECTED:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I create an edit toolbar and cause it to be activated on a feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I add or move vertices on the feature and the graphic updates accordingly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I pan the map or otherwise change the extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. The graphic of the feature I'm editing maintains the edited geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;WHAT HAPPENS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I create an edit toolbar and cause it to be activated on a feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I add or move vertices on the feature and the graphic updates accordingly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I pan the map or otherwise change the extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. The graphic of the feature I'm editing reverts to the geometry of the feature before editing began. However the vertices and ghost vertices remain in their edited position.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TO REPLICATE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Go to this sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/ed/ed_toolbar.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/ed/ed_toolbar.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Double click a feature to begin editing vertices.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Move a vertex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Pan the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is, how do I get my expected behaviour?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose you could do this (haven't tried it though):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create event handler for onVertexAdd and onVertexMoveStop, storing the new geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Create an event handler for map extent change and set the geometry of the edit feature to the last geometry set in (1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But this seems hackish. The fact that the behaviour is "weird" in the sample above is telling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2012 22:24:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/pan-while-editing-vertices-causes-edit-graphic-to/m-p/374128#M34712</guid>
      <dc:creator>BenGiles</dc:creator>
      <dc:date>2012-02-19T22:24:21Z</dc:date>
    </item>
  </channel>
</rss>

