<?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: Editor snapping not recognising  SNAP_MODE_ALWAYS_ON or 'Shared' vertice on polyg in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editor-snapping-not-recognising-nbsp-snap-mode/m-p/346407#M8243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not able to reproduce the 1st issue you reported, its working the way its supposed to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try maybe setting the snapMode even earlier, like in the application initialize handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regarding the 2nd issue, I am still trying to figure out what exactly the problem is. We try to differentiate b/w vertex snapping and edge(line) snapping by showing a "bolder" cross v/s&amp;nbsp; a normal cross. Do you see that in your application?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now, there is no way to turn off edge snapping and vice-versa.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-- Sarthak&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2011 16:21:52 GMT</pubDate>
    <dc:creator>SarthakDatt</dc:creator>
    <dc:date>2011-12-14T16:21:52Z</dc:date>
    <item>
      <title>Editor snapping not recognising  SNAP_MODE_ALWAYS_ON or 'Shared' vertice on polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editor-snapping-not-recognising-nbsp-snap-mode/m-p/346406#M8242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the Editor to 'Split' a polygon that has an adjacent polygon.(using Version 2.5 api).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Firstly I have set the Editor's EditTool to have SNAP_MODE_ALWAYS_ON, but I still have to hold the CTRL key for snapping to engage. Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, snapping does NOT recognised the shared Vertice and I can not snap to it. See attached image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I turn off Line snapping and only snap to vertice?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code below is a modified copy from the samples and has extent of the polygon's I am trying to edit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It also sets the EditTool's properties when the Editor component is created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:mx="library://ns.adobe.com/flex/mx"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="http://www.esri.com/2008/ags"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; initialize="application1_initializeHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pageTitle="Editor with all toolbar options"&amp;gt;
 &amp;lt;!--
 This sample shows you how to use the editor component with a full toolbar.
 --&amp;gt;
 
 &amp;lt;fx:Style&amp;gt;
&amp;nbsp; @namespace esri "http://www.esri.com/2008/ags";
&amp;nbsp; 
&amp;nbsp; esri|InfoWindow
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; background-color : #FFFFFF;
&amp;nbsp;&amp;nbsp; border-thickness : 2;
&amp;nbsp; }
 &amp;lt;/fx:Style&amp;gt;
 
 &amp;lt;fx:Script&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp; import com.esri.ags.components.supportClasses.CreateOptions;
&amp;nbsp;&amp;nbsp; import com.esri.ags.tasks.GeometryService;
&amp;nbsp;&amp;nbsp; import com.esri.ags.tools.DrawTool;
&amp;nbsp;&amp;nbsp; import com.esri.ags.tools.EditTool;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; import mx.events.FlexEvent;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; protected function application1_initializeHandler(event:FlexEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; myEditor.featureLayers = [ fireAreas ];
&amp;nbsp;&amp;nbsp;&amp;nbsp; var myDrawTypePreferences:CreateOptions = new CreateOptions();
&amp;nbsp;&amp;nbsp;&amp;nbsp; // change the defauls drawing tool from "point-to-point" to "freehand"
&amp;nbsp;&amp;nbsp;&amp;nbsp; myDrawTypePreferences.polygonDrawTools = [ DrawTool.POLYGON, DrawTool.POLYLINE, CreateOptions.AUTO_COMPLETE ];
&amp;nbsp;&amp;nbsp;&amp;nbsp; myEditor.createOptions = myDrawTypePreferences;
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; protected function myEditor_creationCompleteHandler(event:FlexEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var editTool:EditTool = myEditor.editTool;
&amp;nbsp;&amp;nbsp;&amp;nbsp; editTool.snapMode = EditTool.SNAP_MODE_ALWAYS_ON;
&amp;nbsp;&amp;nbsp;&amp;nbsp; editTool.allowAddVertices = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp; editTool.allowDeleteVertices = false;
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp; ]]&amp;gt;
 &amp;lt;/fx:Script&amp;gt;
 
 
 &amp;lt;mx:VBox width="100%" height="100%"&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;esri:Map id="map" wrapAround180="true"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:extent&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Extent id="sheepfire"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmin="14404817" ymin="-3626334" xmax="14991242" ymax="-3224581"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SpatialReference wkid="102100"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Extent&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:extent&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer id="fireAreas" mode="snapshot" outFields="*"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/2"/&amp;gt;
&amp;nbsp; &amp;lt;/esri:Map&amp;gt;
&amp;nbsp; &amp;lt;esri:Editor id="myEditor" creationComplete="myEditor_creationCompleteHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="100%"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometryService="{new GeometryService('http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer')}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map="{map}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolbarCutVisible="true"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolbarMergeVisible="true"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolbarReshapeVisible="true"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolbarVisible="true" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;gt;
 &amp;lt;/mx:VBox&amp;gt;
&amp;lt;/s:Application&amp;gt;

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 01:22:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editor-snapping-not-recognising-nbsp-snap-mode/m-p/346406#M8242</guid>
      <dc:creator>MarkHoyland</dc:creator>
      <dc:date>2011-12-14T01:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Editor snapping not recognising  SNAP_MODE_ALWAYS_ON or 'Shared' vertice on polyg</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editor-snapping-not-recognising-nbsp-snap-mode/m-p/346407#M8243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not able to reproduce the 1st issue you reported, its working the way its supposed to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try maybe setting the snapMode even earlier, like in the application initialize handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regarding the 2nd issue, I am still trying to figure out what exactly the problem is. We try to differentiate b/w vertex snapping and edge(line) snapping by showing a "bolder" cross v/s&amp;nbsp; a normal cross. Do you see that in your application?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now, there is no way to turn off edge snapping and vice-versa.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-- Sarthak&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 16:21:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editor-snapping-not-recognising-nbsp-snap-mode/m-p/346407#M8243</guid>
      <dc:creator>SarthakDatt</dc:creator>
      <dc:date>2011-12-14T16:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Editor snapping not recognising  SNAP_MODE_ALWAYS_ON or 'Shared' vertice on polyg</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editor-snapping-not-recognising-nbsp-snap-mode/m-p/346408#M8244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Sarthak,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. So &lt;/SPAN&gt;&lt;STRONG&gt;my&lt;/STRONG&gt;&lt;SPAN&gt; code works for you with SNAP_MODE_ALWAYS_ON?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have some tested and working code that you can provide so I can see if it something to do with my set up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I do not get the bold cross on 'shared' vertices where there is a 'T' intersection like in my image. It always wants to snap to the edge and does not find the vertex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use the code I provided, the extents go to the polygons in the image. You can test on those polygons.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 18:41:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editor-snapping-not-recognising-nbsp-snap-mode/m-p/346408#M8244</guid>
      <dc:creator>MarkHoyland</dc:creator>
      <dc:date>2011-12-14T18:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Editor snapping not recognising  SNAP_MODE_ALWAYS_ON or 'Shared' vertice on polyg</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editor-snapping-not-recognising-nbsp-snap-mode/m-p/346409#M8245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mark, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I tried your code in the attached project and it works fine. You can try it at your end too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Still looking at the 2nd issue..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-- Sarthak&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 21:13:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editor-snapping-not-recognising-nbsp-snap-mode/m-p/346409#M8245</guid>
      <dc:creator>SarthakDatt</dc:creator>
      <dc:date>2011-12-14T21:13:53Z</dc:date>
    </item>
  </channel>
</rss>

