<?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 all the overlapping polyline object by mouse click in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531961#M49576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow! Thanks so much.&lt;/P&gt;&lt;P&gt;So would you have any idea to solve the overlapping object in same layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an idea about create a small cricle buffer where mouse click, then get the extent to put on &lt;SPAN style="color: #800000;"&gt;&lt;STRONG&gt;query.geometry &lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;to query again by querytask.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="position: absolute; left: -2px; top: 6px;"&gt;&lt;DIV class="gtx-trans-icon"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2019 00:06:28 GMT</pubDate>
    <dc:creator>Chia-JuiLiu</dc:creator>
    <dc:date>2019-10-25T00:06:28Z</dc:date>
    <item>
      <title>Select all the overlapping polyline object by mouse click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531957#M49572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my&amp;nbsp;scenario,&amp;nbsp; Arcgis map server is need to log in by use token as the query parameter to access.&lt;/P&gt;&lt;P&gt;My graphic layer is contain the overlapping polyline on the street,&lt;/P&gt;&lt;P&gt;then the demand is when user click the colored-polyline, while user doesn't know about where is overlapping,&lt;/P&gt;&lt;P&gt;if there is, we'll show all the map object over the click map point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I use the graphiclayer.on("click") function, it only could get the top object on the map.&lt;/P&gt;&lt;P&gt;The under object overlapped by top object won't be choosed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I found "IdentifyTask" could search by location.&lt;/P&gt;&lt;P&gt;by in my use, the line below will report a error call "Cannot read property 'path' of undefined".&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-size: 18px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; identifyTask&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;IdentifyTask&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;ServiceRootURL&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem on the IdentifyTask.js be liked:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;constructor: function(d, a) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;this._url.path += "/identify"; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;//←the _url is null in "this"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;this._handler = e.hitch(this, this._handler);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;this.gdbVersion = a &amp;amp;&amp;amp; a.gdbVersion;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;this.registerConnectEvents()&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should it be any wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or in my case, how can I select all the object overlapping on same map point,&lt;/P&gt;&lt;P&gt;thanks for advanced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 10:22:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531957#M49572</guid>
      <dc:creator>Chia-JuiLiu</dc:creator>
      <dc:date>2019-10-24T10:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select all the overlapping polyline object by mouse click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531958#M49573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this question about 4.x or 3.x API?&lt;/P&gt;&lt;P&gt;When attempting to use the IdentifyTask are you giving it a map service url like below (i.e. no specific layer id in the url)?&lt;/P&gt;&lt;PRE&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:48:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531958#M49573</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-10-24T12:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select all the overlapping polyline object by mouse click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531959#M49574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Excuse, it's on API 3.24 version.&lt;/P&gt;&lt;P&gt;And the url is like that right without the layer id, I also use the sampleserver url to test,and it's failed.&lt;/P&gt;&lt;P&gt;My code is put on the graphiclayers.on("click", function( ){ }) function block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I found that map service I use is not support the identifyTask query.. so it may have to try another solution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 15:23:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531959#M49574</guid>
      <dc:creator>Chia-JuiLiu</dc:creator>
      <dc:date>2019-10-24T15:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select all the overlapping polyline object by mouse click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531960#M49575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The identifyTask is only for a whole map service and not a individual layer of a map service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 15:42:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531960#M49575</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-10-24T15:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select all the overlapping polyline object by mouse click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531961#M49576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow! Thanks so much.&lt;/P&gt;&lt;P&gt;So would you have any idea to solve the overlapping object in same layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an idea about create a small cricle buffer where mouse click, then get the extent to put on &lt;SPAN style="color: #800000;"&gt;&lt;STRONG&gt;query.geometry &lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;to query again by querytask.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="position: absolute; left: -2px; top: 6px;"&gt;&lt;DIV class="gtx-trans-icon"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 00:06:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531961#M49576</guid>
      <dc:creator>Chia-JuiLiu</dc:creator>
      <dc:date>2019-10-25T00:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select all the overlapping polyline object by mouse click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531962#M49577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;I have an idea about create a small circle buffer where mouse click, then get the extent to put on&amp;nbsp;query.geometry&amp;nbsp;to query again by querytask.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is the right path. I normally use a&amp;nbsp;extent instead though. I have a helper function I use all the time for this to convert the point to an extent based on a specified number of screen pixels (not map units).&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;pointToExtent&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;objPoint&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pixels&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; map&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; clickOffset &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pixels &lt;SPAN class="operator token"&gt;||&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;6&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; scrnPnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;toScreen&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;objPoint&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  scrnPnt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;update&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;scrnPnt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;x &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; clickOffset&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; scrnPnt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;y &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; clickOffset&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; nPnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;toMap&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;scrnPnt&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; queryExtent &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Extent&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
    Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;min&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;objPoint&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; nPnt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;min&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;objPoint&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; nPnt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;max&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;objPoint&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; nPnt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;max&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;objPoint&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; nPnt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    objPoint&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;spatialReference&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; queryExtent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;centerAt&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;objPoint&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then I use the extent for the query geometry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:08:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531962#M49577</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T23:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select all the overlapping polyline object by mouse click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531963#M49578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's really awesome.&amp;nbsp;I feel confidence to fill my work.&lt;/P&gt;&lt;P&gt;May I ask what the parameters do you send into this function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the 'map' could be an Arcgis Map Object, then I guess 'pixels' was the screen point catch from mouse click event.&lt;/P&gt;&lt;P&gt;But I'm confused at which values should I got from the clicked object.&lt;/P&gt;&lt;P&gt;Let me confirm your function with you, it is fired when user click on the symbol object, then the function return the extent to ready for querytask method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your kindness and patience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2019 17:51:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531963#M49578</guid>
      <dc:creator>Chia-JuiLiu</dc:creator>
      <dc:date>2019-10-27T17:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select all the overlapping polyline object by mouse click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531964#M49579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chia-Jui Liu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The pixel parameter is the number of screen pixels to add to the point when converting it to an extent (you should notice from the code that 6 is the default if nothing is specified). Map is a map object class, and objPoint is a point object class that you are wanting to convert to an extent (i.e the clicked point in your case).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2019 12:09:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-all-the-overlapping-polyline-object-by/m-p/531964#M49579</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-10-28T12:09:05Z</dc:date>
    </item>
  </channel>
</rss>

