<?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 snapping in flex in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/snapping-in-flex/m-p/283821#M6740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to add snapping functionality to my application. The arcgis api for flex states that the snapping mode default is on demand. I have debugged the code and checked, the editor contains all the featurelayers needed to work with. However whenever I try snapping while adding or updating a feature they don't snap. I tried using the default edit widget in the flex viewer but snapping doesn't seem to be working there as well. Can anyone suggest somet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2015 22:06:16 GMT</pubDate>
    <dc:creator>NigelDsouza</dc:creator>
    <dc:date>2015-04-22T22:06:16Z</dc:date>
    <item>
      <title>snapping in flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/snapping-in-flex/m-p/283821#M6740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to add snapping functionality to my application. The arcgis api for flex states that the snapping mode default is on demand. I have debugged the code and checked, the editor contains all the featurelayers needed to work with. However whenever I try snapping while adding or updating a feature they don't snap. I tried using the default edit widget in the flex viewer but snapping doesn't seem to be working there as well. Can anyone suggest somet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 22:06:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/snapping-in-flex/m-p/283821#M6740</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2015-04-22T22:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: snapping in flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/snapping-in-flex/m-p/283822#M6741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nigel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you holding down the control key as you are hovering over features?&amp;nbsp; The features must also be a feature layer and not a map layer.&amp;nbsp; Otherwise the features are just in a raster image representation instead of an actual vector that can be snapped to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 23:33:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/snapping-in-flex/m-p/283822#M6741</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2015-04-22T23:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: snapping in flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/snapping-in-flex/m-p/283823#M6742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;Yup I am holding down the cnrtl key while performing the edit. Also the layers in the edit tool are feature layers as I am able to add,update and delete records . is something go to do with the visibility or feature layer mode or something? Or do I have to explicitly set any properties to the edittool or drawtool on the editor component?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nigel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 01:58:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/snapping-in-flex/m-p/283823#M6742</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2015-04-23T01:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: snapping in flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/snapping-in-flex/m-p/283824#M6743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nigel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe by default snapping is available.&amp;nbsp; You can expressly set snapping parameters for the edit tool or draw tool.&amp;nbsp; Here is an excerpt from the API reference:&lt;/P&gt;&lt;TABLE cellpadding="0" cellspacing="0" class="detailHeader" style="margin-left: 20px; margin-top: 10px; margin-bottom: 3px; color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; background-color: white;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="detailHeaderName" style="font-weight: bold; font-size: 1.143em; font-family: 'Avenir LT W01 65 Medium', Arial, Helvetica, sans-serif;"&gt;snapMode&lt;/TD&gt;&lt;TD class="detailHeaderType" style="padding-right: 10px; padding-left: 7px;"&gt;property&lt;/TD&gt;&lt;TD class="detailHeaderRule" style="border-top-width: 2px; border-top-style: solid; border-top-color: #782486;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;CODE style="font-family: 'Lucida Console', 'Courier New', Courier, monospace;"&gt;snapMode:String&lt;/CODE&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD valign="top"&gt;&lt;STRONG&gt;Since : &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;ArcGIS API for Flex 2.5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifies whether snapping is off, always on or enabled by pressing the Ctrl key.&lt;/P&gt;&lt;P&gt;The default value is &lt;CODE style="font-family: 'Lucida Console', 'Courier New', Courier, monospace;"&gt;SNAP_MODE_ON_DEMAND&lt;/CODE&gt;.&lt;/P&gt;&lt;P&gt;This property can be used as the source for data binding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="label" style="color: #444444; font-weight: bold;"&gt;Implementation &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: 'Lucida Console', 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function get snapMode():String&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: 'Lucida Console', 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function set snapMode(value:String):void&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put together a measure widget that is a variation of the draw tool.&amp;nbsp; It also has snapping capability.&amp;nbsp; You can view it here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.yakimawa.gov/cityflex/index.html?config=measure.xml" title="http://gis.yakimawa.gov/cityflex/index.html?config=measure.xml"&gt;Yakima CityFlex Viewer&lt;/A&gt; - measure widget&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a code snippet from my measure widget setting the draw tool snapping parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;esri:DrawTool id="measureDrawTool" map="{map}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; snapDistance="20" snapMode="onDemand" snapOption="vertex"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; showDrawTips="{showDrawingTips}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; drawEnd="map_drawEndHandler(event)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; graphicsLayer="{graphicsLayer}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lineSymbol="{lineSymbol}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fillSymbol="{fillSymbol}" /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 15:15:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/snapping-in-flex/m-p/283824#M6743</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2015-04-23T15:15:53Z</dc:date>
    </item>
  </channel>
</rss>

