<?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: Snapping events and options enhancements for 4.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1068820#M73514</link>
    <description>&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;We have been asked to develop a "trace" tool in which a user would move the cursor along a line or polygon in streaming mode, creating vertices at each vertex of the target feature. The additional snapping events would help do to things like display an edge within snapping distance without creating a vertex there, and to continue snapping when moving from one edge to another. Here are the issues we encountered when experimenting with snapping while streaming:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When you move away from the edge, moving close again does not re-start snapping to the edge.&lt;/LI&gt;&lt;LI&gt;When you pass the vertex at the end of the edge it does not start snapping to the next one.&lt;/LI&gt;&lt;LI&gt;You cannot start by snapping to a vertex - it will not start snapping to the connected edge.&lt;/LI&gt;&lt;LI&gt;It creates more vertices than we would want - we really want to create them only at the target layer's vertices not its edges.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Ethan&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jun 2021 11:42:04 GMT</pubDate>
    <dc:creator>EthanBodin1</dc:creator>
    <dc:date>2021-06-16T11:42:04Z</dc:date>
    <item>
      <title>Snapping events and options enhancements for 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1065635#M73419</link>
      <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html" target="_self"&gt;SnappingOptions&lt;/A&gt;&amp;nbsp;&amp;nbsp;in JSAPI 4.19 is a great addition. The following enhancements would really increase its usefulness.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Emit events when a snap is about to occur. Properties should include the location of the cursor, the snap point, the target layer, the feature in the target layer, and whether the snap point is an edge, vertex, or point. Make the event cancelable so developers could suppress the snapped UI in certain conditions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional properties of &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-FeatureSnappingLayerSource.html" target="_self"&gt;FeatureSnappingLayerSource&lt;/A&gt;&amp;nbsp;&amp;nbsp;to control whether to snap to edges and/or vertices and/or points, as in &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/snappingmanager-amd.html#methods" target="_self"&gt;3.x&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 14:35:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1065635#M73419</guid>
      <dc:creator>EthanBodin1</dc:creator>
      <dc:date>2021-06-07T14:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Snapping events and options enhancements for 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1068679#M73509</link>
      <description>&lt;P&gt;Hi Ethan,&lt;/P&gt;&lt;P&gt;Thanks for the feedback on the snapping enhancements you would like to see in the future. We would like to be able to have the options to control whether to snap to edges, vertices, etc. just like ArcGIS Pro does it. This is currently being discussed on how to port this into the Sketch widget, so thanks for the feedback!&lt;/P&gt;&lt;P&gt;In regards to event emitting, this could be something we discuss as well. Is there a specific use case in which this would be useful to you or to others as well?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Jose&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 22:56:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1068679#M73509</guid>
      <dc:creator>JoseBanuelos</dc:creator>
      <dc:date>2021-06-15T22:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Snapping events and options enhancements for 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1068820#M73514</link>
      <description>&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;We have been asked to develop a "trace" tool in which a user would move the cursor along a line or polygon in streaming mode, creating vertices at each vertex of the target feature. The additional snapping events would help do to things like display an edge within snapping distance without creating a vertex there, and to continue snapping when moving from one edge to another. Here are the issues we encountered when experimenting with snapping while streaming:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When you move away from the edge, moving close again does not re-start snapping to the edge.&lt;/LI&gt;&lt;LI&gt;When you pass the vertex at the end of the edge it does not start snapping to the next one.&lt;/LI&gt;&lt;LI&gt;You cannot start by snapping to a vertex - it will not start snapping to the connected edge.&lt;/LI&gt;&lt;LI&gt;It creates more vertices than we would want - we really want to create them only at the target layer's vertices not its edges.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Ethan&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 11:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1068820#M73514</guid>
      <dc:creator>EthanBodin1</dc:creator>
      <dc:date>2021-06-16T11:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Snapping events and options enhancements for 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1069825#M73537</link>
      <description>&lt;P&gt;Hi Ethan,&lt;/P&gt;&lt;P&gt;This is a pretty solid use case. Creating your own tracing logic via the snapping events is pretty interesting, and this would be a good enhancement. At the moment the snapping engine used is under the hood, so we will look into potentially exposing some of these events.&lt;/P&gt;&lt;P&gt;Thank you so much for your feedback,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 14:46:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1069825#M73537</guid>
      <dc:creator>JoseBanuelos</dc:creator>
      <dc:date>2021-06-18T14:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Snapping events and options enhancements for 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1073576#M73667</link>
      <description>&lt;P&gt;Agree, look very promising.&lt;/P&gt;&lt;P&gt;One thing that stop me - the definition expression on my Feature service are ignore when it is used as a FeatureSnappingLayerSource: i.e. all the data are retrieved in the FeatureService - and it is just to many records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 07:29:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1073576#M73667</guid>
      <dc:creator>GertConradie</dc:creator>
      <dc:date>2021-06-29T07:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Snapping events and options enhancements for 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1075909#M73740</link>
      <description>&lt;P&gt;Looking into this, this could potentially be a bug. Thanks for bringing this up&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/125268"&gt;@GertConradie&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 16:33:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1075909#M73740</guid>
      <dc:creator>JoseBanuelos</dc:creator>
      <dc:date>2021-07-06T16:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Snapping events and options enhancements for 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1077042#M73780</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/125268"&gt;@GertConradie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am seeing the request (where: 1=1) being sent when you add the feature service with a definition expression as a feature snapping layer source. We will be looking into this. Thanks again for bringing up this issue you found.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jose&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 22:50:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1077042#M73780</guid>
      <dc:creator>JoseBanuelos</dc:creator>
      <dc:date>2021-07-08T22:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Snapping events and options enhancements for 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1077259#M73793</link>
      <description>&lt;P&gt;Thanks, much appreciated.&lt;/P&gt;&lt;P&gt;For anyone in the meantime that get stuck with it -&amp;nbsp;I found a workaround for the interim. (It only works because I have relative few polygon geometries supplied by the definitionExpression used, that I want to snap against.)&lt;/P&gt;&lt;P&gt;I query/retrieve the client side geometries from my real FeatureLayer, than load them in a temporary client-side-only FeatureLayer, which I use as a snapping data source. The temporary layer does not have to be added to the map first - you can pass it on to the snapping tools directly&lt;/P&gt;&lt;P&gt;The snapping work really great!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 14:56:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1077259#M73793</guid>
      <dc:creator>GertConradie</dc:creator>
      <dc:date>2021-07-09T14:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Snapping events and options enhancements for 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1269021#M80587</link>
      <description>&lt;P&gt;Hello Jose,&lt;/P&gt;&lt;P&gt;Has a "snapping" event been implemented yet? An application I'm working on has graphics layer full of points, and the user needs to add a point on the map to do some stuff. They have the option to enable snapping on the existing graphics layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When snapping is enabled, they want to be able to see the data of the point that is being snapped to, in real time while the hover around the map, to help them determine where they want to place the new point. Does this functionality exist for the current sketch widget?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 16:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/snapping-events-and-options-enhancements-for-4-x/m-p/1269021#M80587</guid>
      <dc:creator>Kathrynb95</dc:creator>
      <dc:date>2023-03-17T16:02:49Z</dc:date>
    </item>
  </channel>
</rss>

