<?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: Select line features onClick in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-line-features-onclick/m-p/254987#M23669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can do a "fake selection" with the query task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Draw a geometry to create a bounding box (build a drag selection tool or use a polygon) and use it as value of query.geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The query task result will highlight (fake select) the line and return the attributes that you can use as you want. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously the query task result is "only" a &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jsapi/featureset.htm"&gt;FeatureSet&lt;/A&gt;&lt;SPAN&gt;... but it can do the job.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jul 2010 16:44:56 GMT</pubDate>
    <dc:creator>AlessioDi_Lorenzo</dc:creator>
    <dc:date>2010-07-01T16:44:56Z</dc:date>
    <item>
      <title>Select line features onClick</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-line-features-onclick/m-p/254986#M23668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to select a line feature and get the ID returned, along with "selecting" that line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know how to do that with the ADF, but don't know how to do that with JSAPI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I need to be able to add multiple line segments to the selectionset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My thinking here is that i could do this with a Buffer or GP task, but am not sure which way to go about this. The query task popped up, and that looked good too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a queryTask?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, got any examples?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently using a query task with :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.spatialRelationship = esri.tasks.Query.SPATIAL_REL_INTERSECTS;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to get the x/y of the click, but am not sure how to select the line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anyone point me in the correct direction?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;david&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 16:06:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-line-features-onclick/m-p/254986#M23668</guid>
      <dc:creator>davidrenz</dc:creator>
      <dc:date>2010-07-01T16:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select line features onClick</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-line-features-onclick/m-p/254987#M23669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can do a "fake selection" with the query task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Draw a geometry to create a bounding box (build a drag selection tool or use a polygon) and use it as value of query.geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The query task result will highlight (fake select) the line and return the attributes that you can use as you want. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously the query task result is "only" a &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jsapi/featureset.htm"&gt;FeatureSet&lt;/A&gt;&lt;SPAN&gt;... but it can do the job.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 16:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-line-features-onclick/m-p/254987#M23669</guid>
      <dc:creator>AlessioDi_Lorenzo</dc:creator>
      <dc:date>2010-07-01T16:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select line features onClick</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-line-features-onclick/m-p/254988#M23670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you're using 2.0, Feature Layers support selections:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/fl_selectfeatures.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/fl_selectfeatures.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 17:11:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-line-features-onclick/m-p/254988#M23670</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2010-07-01T17:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select line features onClick</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-line-features-onclick/m-p/254989#M23671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks fellers! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;am going with the 2.0 stuff!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i kind of hacked it together with identify using the old api stuff, this 2.0 stuff is very cool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 19:54:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-line-features-onclick/m-p/254989#M23671</guid>
      <dc:creator>davidrenz</dc:creator>
      <dc:date>2010-07-01T19:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select line features onClick</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-line-features-onclick/m-p/254990#M23672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you're using 2.0, Feature Layers support selections:&amp;nbsp; &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/fl_selectfeatures.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/fl_selectfeatures.html&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;very cool &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 07:37:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-line-features-onclick/m-p/254990#M23672</guid>
      <dc:creator>AlessioDi_Lorenzo</dc:creator>
      <dc:date>2010-07-02T07:37:45Z</dc:date>
    </item>
  </channel>
</rss>

