<?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: How to add point to map/service that must intersect layer with JS API or REST API? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-point-to-map-service-that-must/m-p/683128#M18040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Geoffrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;There is not a widget out there for this custom workflow, but it can definitely be created as a custom widget. The main issue will be the precision that will be needed to get a point yo intersect a line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2016 13:35:10 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-11-18T13:35:10Z</dc:date>
    <item>
      <title>How to add point to map/service that must intersect layer with JS API or REST API?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-point-to-map-service-that-must/m-p/683127#M18039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to write a function which allows a user to enter coordinates a via a widget for a WebApplication Builder application. &amp;nbsp;The user should be able to enter coordinates and the point appears on the map and posts to a feature service if the coordinates intersect with a line feature/map service. &amp;nbsp;Is there a widget that already harnesses this functionality, if not, how can this be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 00:31:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-point-to-map-service-that-must/m-p/683127#M18039</guid>
      <dc:creator>GeoffreyWest</dc:creator>
      <dc:date>2016-11-16T00:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to add point to map/service that must intersect layer with JS API or REST API?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-point-to-map-service-that-must/m-p/683128#M18040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Geoffrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;There is not a widget out there for this custom workflow, but it can definitely be created as a custom widget. The main issue will be the precision that will be needed to get a point yo intersect a line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 13:35:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-point-to-map-service-that-must/m-p/683128#M18040</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-11-18T13:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to add point to map/service that must intersect layer with JS API or REST API?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-point-to-map-service-that-must/m-p/683129#M18041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Robert mentioned this is a custom widget,&lt;BR /&gt;Below is a general description of the task at hand that might get you moving forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a blank &lt;A href="https://developers.arcgis.com/web-appbuilder/sample-code/create-custom-in-panel-widget.htm"&gt;Web App Builder widget&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Have 2 &lt;A href="http://www.w3schools.com/TAgs/tag_input.asp"&gt;input boxes&lt;/A&gt; for the X and Y values to be entered and a button.&lt;/LI&gt;&lt;LI&gt;When the user clicks the &lt;A href="http://www.w3schools.com/tags/tag_button.asp"&gt;button&lt;/A&gt;, convert the users input into a &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/point-amd.html"&gt;Point object&lt;/A&gt; and a new &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/graphic-amd.html"&gt;Graphic&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;Add the graphic to a new &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/graphicslayer-amd.html"&gt;GraphicsLayer &lt;/A&gt;- dont forget to &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/simplemarkersymbol-amd.html"&gt;symbolize &lt;/A&gt;and add the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/graphicslayer-amd.html"&gt;Graphicslayer &lt;/A&gt;to the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#addlayer"&gt;map&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;Using the Point geometry run an &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html#intersects"&gt;intersect &lt;/A&gt;against your line(s) and see if it comes back true&lt;UL&gt;&lt;LI&gt;The &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html"&gt;geometryEngine &lt;/A&gt;can help with the intersect:&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;If the intersect is true then take your point and add it to a &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html"&gt;feature layer&lt;/A&gt;&amp;nbsp;using the '&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#applyedits"&gt;applyEdits&lt;/A&gt;' function.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other factors to consider is the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/spatialreference-amd.html"&gt;spatial reference &lt;/A&gt;of the XY and error checking&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 14:28:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-point-to-map-service-that-must/m-p/683129#M18041</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2016-11-18T14:28:01Z</dc:date>
    </item>
  </channel>
</rss>

