<?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 featurelayer have been redrawn when panning the map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-have-been-redrawn-when-panning-the/m-p/344373#M31784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i`m trying to the arcgis javascript featurelayer editing web App.&lt;/P&gt;&lt;P&gt;I had to face two Problem.&lt;/P&gt;&lt;P&gt;Probem 1.&lt;/P&gt;&lt;P&gt;i was tested two featurelayer .&lt;/P&gt;&lt;P&gt;&amp;lt;1&amp;gt;&lt;/P&gt;&lt;P&gt;layer1 =new FeatureLayer(url, {&lt;BR /&gt; mode: FeatureLayer.MODE_SNAPSHOT,&lt;BR /&gt; outFields: ["*"],&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;layer1's geometrytpye is "polygon"&lt;/P&gt;&lt;P&gt;&amp;lt;2&amp;gt;&lt;/P&gt;&lt;P&gt;layer2 =new FeatureLayer(url, {&lt;BR /&gt; mode: FeatureLayer.MODE_ONDEMAND,&lt;BR /&gt; outFields: ["*"],&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;layer2's geometrytype is "point"&lt;/P&gt;&lt;P&gt;layer1 was tested graphicMove editing. This layer did not disappear even if the extent has change.&lt;/P&gt;&lt;P&gt;layer2 was also tested graphicMove editing. but... this layer disappear. when map extent changed.&lt;/P&gt;&lt;P&gt;i was tested layer2`s mode MODE_SNAPSHOT.&lt;BR /&gt;but...layer2 invisible...&lt;/P&gt;&lt;P&gt;Why should I use two layers of different modes ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Probrem 2.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When I want to undo the move event to occur and featurelayer.&lt;/P&gt;&lt;P&gt;arcgis sample code was graphic add undoManager.&lt;/P&gt;&lt;P&gt;i want move evt`s undo...&lt;/P&gt;&lt;P&gt;this is my code. how do i fix that? help me.. There is no senior or tell anyone.&lt;/P&gt;&lt;P&gt;realMap.on("layers-add-result", initEditing);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; function initEditing(evt) {&lt;BR /&gt; &lt;BR /&gt; var currentLayer = null;&lt;BR /&gt; var layers = arrayUtils.map(evt.layers, function(result) {&lt;BR /&gt; console.log("result ==== ",result);&lt;BR /&gt; return result.layer;&lt;BR /&gt; });&lt;BR /&gt; console.log("layers", layers);&lt;BR /&gt; editToolbar = new Edit(map);&lt;BR /&gt; editToolbar.on("deactivate", function(evt) {&lt;BR /&gt; eidt_flag = true;&lt;BR /&gt; console.log("편집종료 ");&lt;BR /&gt; currentLayer.applyEdits(null, [evt.graphic], null);&lt;BR /&gt; console.log("Editing was Updated");&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; arrayUtils.forEach(layers, function(layer) {&lt;BR /&gt; var editingEnabled = false;&lt;BR /&gt; layer.on("click", function(evt) {&lt;BR /&gt; var originalFeature=null;&lt;BR /&gt; event.stop(evt); &lt;BR /&gt; editToolbar.activate(Edit.MOVE , evt.graphic);&lt;BR /&gt; editToolbar.on("graphic-first-move", function(evt){&lt;BR /&gt; console.log("Move evt === ",move_geo);&lt;BR /&gt; &lt;BR /&gt; });&lt;BR /&gt; editToolbar.on("graphic-move-stop", function(evt){&lt;BR /&gt; console.log("Stop evt === ",stop_geo);&lt;BR /&gt; &lt;BR /&gt; var operation = new Update({&lt;BR /&gt; featureLayer : layer,&lt;BR /&gt; preUpdatedGraphics: map.graphics,&lt;BR /&gt; postUpdatedGraphics: evt.graphic&lt;BR /&gt; });&lt;BR /&gt; undoManager.add(operation);&lt;BR /&gt; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Aug 2016 10:08:16 GMT</pubDate>
    <dc:creator>parkseung</dc:creator>
    <dc:date>2016-08-16T10:08:16Z</dc:date>
    <item>
      <title>featurelayer have been redrawn when panning the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-have-been-redrawn-when-panning-the/m-p/344373#M31784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i`m trying to the arcgis javascript featurelayer editing web App.&lt;/P&gt;&lt;P&gt;I had to face two Problem.&lt;/P&gt;&lt;P&gt;Probem 1.&lt;/P&gt;&lt;P&gt;i was tested two featurelayer .&lt;/P&gt;&lt;P&gt;&amp;lt;1&amp;gt;&lt;/P&gt;&lt;P&gt;layer1 =new FeatureLayer(url, {&lt;BR /&gt; mode: FeatureLayer.MODE_SNAPSHOT,&lt;BR /&gt; outFields: ["*"],&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;layer1's geometrytpye is "polygon"&lt;/P&gt;&lt;P&gt;&amp;lt;2&amp;gt;&lt;/P&gt;&lt;P&gt;layer2 =new FeatureLayer(url, {&lt;BR /&gt; mode: FeatureLayer.MODE_ONDEMAND,&lt;BR /&gt; outFields: ["*"],&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;layer2's geometrytype is "point"&lt;/P&gt;&lt;P&gt;layer1 was tested graphicMove editing. This layer did not disappear even if the extent has change.&lt;/P&gt;&lt;P&gt;layer2 was also tested graphicMove editing. but... this layer disappear. when map extent changed.&lt;/P&gt;&lt;P&gt;i was tested layer2`s mode MODE_SNAPSHOT.&lt;BR /&gt;but...layer2 invisible...&lt;/P&gt;&lt;P&gt;Why should I use two layers of different modes ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Probrem 2.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When I want to undo the move event to occur and featurelayer.&lt;/P&gt;&lt;P&gt;arcgis sample code was graphic add undoManager.&lt;/P&gt;&lt;P&gt;i want move evt`s undo...&lt;/P&gt;&lt;P&gt;this is my code. how do i fix that? help me.. There is no senior or tell anyone.&lt;/P&gt;&lt;P&gt;realMap.on("layers-add-result", initEditing);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; function initEditing(evt) {&lt;BR /&gt; &lt;BR /&gt; var currentLayer = null;&lt;BR /&gt; var layers = arrayUtils.map(evt.layers, function(result) {&lt;BR /&gt; console.log("result ==== ",result);&lt;BR /&gt; return result.layer;&lt;BR /&gt; });&lt;BR /&gt; console.log("layers", layers);&lt;BR /&gt; editToolbar = new Edit(map);&lt;BR /&gt; editToolbar.on("deactivate", function(evt) {&lt;BR /&gt; eidt_flag = true;&lt;BR /&gt; console.log("편집종료 ");&lt;BR /&gt; currentLayer.applyEdits(null, [evt.graphic], null);&lt;BR /&gt; console.log("Editing was Updated");&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; arrayUtils.forEach(layers, function(layer) {&lt;BR /&gt; var editingEnabled = false;&lt;BR /&gt; layer.on("click", function(evt) {&lt;BR /&gt; var originalFeature=null;&lt;BR /&gt; event.stop(evt); &lt;BR /&gt; editToolbar.activate(Edit.MOVE , evt.graphic);&lt;BR /&gt; editToolbar.on("graphic-first-move", function(evt){&lt;BR /&gt; console.log("Move evt === ",move_geo);&lt;BR /&gt; &lt;BR /&gt; });&lt;BR /&gt; editToolbar.on("graphic-move-stop", function(evt){&lt;BR /&gt; console.log("Stop evt === ",stop_geo);&lt;BR /&gt; &lt;BR /&gt; var operation = new Update({&lt;BR /&gt; featureLayer : layer,&lt;BR /&gt; preUpdatedGraphics: map.graphics,&lt;BR /&gt; postUpdatedGraphics: evt.graphic&lt;BR /&gt; });&lt;BR /&gt; undoManager.add(operation);&lt;BR /&gt; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 10:08:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-have-been-redrawn-when-panning-the/m-p/344373#M31784</guid>
      <dc:creator>parkseung</dc:creator>
      <dc:date>2016-08-16T10:08:16Z</dc:date>
    </item>
  </channel>
</rss>

