<?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 IdentifyTask times out on line segments in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-times-out-on-line-segments/m-p/1013241#M71262</link>
    <description>&lt;P&gt;IdentifyTask times out.&amp;nbsp; Here is client side (relevant) code:&lt;/P&gt;&lt;P&gt;const pt: __esri.Geometry = new Point({&lt;BR /&gt;type: "point",&lt;BR /&gt;x: eve.mapPoint.x,&lt;BR /&gt;y: eve.mapPoint.y,&lt;BR /&gt;spatialReference: this.comMapView.spatialReference,&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;let identifyTask = new IdentifyTask(layerInfo.url);&lt;/P&gt;&lt;P&gt;let identifyParams = new IdentifyParameters();&lt;BR /&gt;identifyParams.tolerance = 3;&lt;BR /&gt;identifyParams.layerIds = [4, 44, 1];&lt;BR /&gt;identifyParams.layerOption = 'visible';&lt;BR /&gt;identifyParams.width = this.comMapView.width;&lt;BR /&gt;identifyParams.height = this.comMapView.height;&lt;BR /&gt;identifyParams.spatialReference = this.comMapView.spatialReference;&lt;BR /&gt;identifyParams.mapExtent = this.comMapView.extent;&lt;BR /&gt;identifyParams.returnGeometry = false;&lt;BR /&gt;identifyParams.geometry = pt;&lt;/P&gt;&lt;P&gt;identifyTask.execute(identifyParams).then(resp =&amp;gt; { ... })&lt;/P&gt;&lt;P&gt;Looking for ways to optimize the task either on server side or client side, as results do return given sufficient time.&amp;nbsp; Do not want to increase timeout value which is currently at 60 s.&lt;/P&gt;&lt;P&gt;On the attached image, results return faster on green ellipse area (shorter line segments).&amp;nbsp; Seems to timeout for longer line segments (red ellipse area).&lt;/P&gt;</description>
    <pubDate>Thu, 31 Dec 2020 19:30:44 GMT</pubDate>
    <dc:creator>workplayce2</dc:creator>
    <dc:date>2020-12-31T19:30:44Z</dc:date>
    <item>
      <title>IdentifyTask times out on line segments</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-times-out-on-line-segments/m-p/1013241#M71262</link>
      <description>&lt;P&gt;IdentifyTask times out.&amp;nbsp; Here is client side (relevant) code:&lt;/P&gt;&lt;P&gt;const pt: __esri.Geometry = new Point({&lt;BR /&gt;type: "point",&lt;BR /&gt;x: eve.mapPoint.x,&lt;BR /&gt;y: eve.mapPoint.y,&lt;BR /&gt;spatialReference: this.comMapView.spatialReference,&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;let identifyTask = new IdentifyTask(layerInfo.url);&lt;/P&gt;&lt;P&gt;let identifyParams = new IdentifyParameters();&lt;BR /&gt;identifyParams.tolerance = 3;&lt;BR /&gt;identifyParams.layerIds = [4, 44, 1];&lt;BR /&gt;identifyParams.layerOption = 'visible';&lt;BR /&gt;identifyParams.width = this.comMapView.width;&lt;BR /&gt;identifyParams.height = this.comMapView.height;&lt;BR /&gt;identifyParams.spatialReference = this.comMapView.spatialReference;&lt;BR /&gt;identifyParams.mapExtent = this.comMapView.extent;&lt;BR /&gt;identifyParams.returnGeometry = false;&lt;BR /&gt;identifyParams.geometry = pt;&lt;/P&gt;&lt;P&gt;identifyTask.execute(identifyParams).then(resp =&amp;gt; { ... })&lt;/P&gt;&lt;P&gt;Looking for ways to optimize the task either on server side or client side, as results do return given sufficient time.&amp;nbsp; Do not want to increase timeout value which is currently at 60 s.&lt;/P&gt;&lt;P&gt;On the attached image, results return faster on green ellipse area (shorter line segments).&amp;nbsp; Seems to timeout for longer line segments (red ellipse area).&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 19:30:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-times-out-on-line-segments/m-p/1013241#M71262</guid>
      <dc:creator>workplayce2</dc:creator>
      <dc:date>2020-12-31T19:30:44Z</dc:date>
    </item>
  </channel>
</rss>

