<?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 query the portal for layers within a specific geometry? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-the-portal-for-layers-within-a/m-p/397533#M36632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Undral,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the 3.19 version of the JavaScript API. I was looking at the documentation here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/portal-amd.html#queryitems" title="https://developers.arcgis.com/javascript/3/jsapi/portal-amd.html#queryitems"&gt;Portal | API Reference | ArcGIS API for JavaScript 3.19&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This documentation doesn't indicate any reference to the bbox parameter. But, as you suggested, I tried adding a bbox parameter to my query parameters, and it worked! Strange that this isn't included in the JavaScript API documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2017 22:03:16 GMT</pubDate>
    <dc:creator>JonathanBailey</dc:creator>
    <dc:date>2017-01-20T22:03:16Z</dc:date>
    <item>
      <title>How to query the portal for layers within a specific geometry?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-the-portal-for-layers-within-a/m-p/397531#M36630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;Portal.queryItems(queryParams?)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can be used to query the portal for items. However, there doesn't appear to be a a way to query for items within a specific search geometry (such as within a map extent). The PortalItems that are returned can be examined to determine if their extents intersect the search geometry (requiring an additional call to the GeometryService).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems like something that should be possible, as evidenced by the fact that you can do it from within the ArcGIS Online map viewer. Is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 17:11:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-the-portal-for-layers-within-a/m-p/397531#M36630</guid>
      <dc:creator>JonathanBailey</dc:creator>
      <dc:date>2017-01-17T17:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to query the portal for layers within a specific geometry?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-the-portal-for-layers-within-a/m-p/397532#M36631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jonathan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using 3.x? If so you should be able to specify bbox&amp;nbsp;property in queryParams. I have not tested it but it should work. Here a link to REST API doc for search:&amp;nbsp;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Search/02r3000000mp000000/" title="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Search/02r3000000mp000000/"&gt;ArcGIS REST API&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are using 4.x then you can specify PortalQueryParams.extent:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#extent" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#extent"&gt;PortalQueryParams | API Reference | ArcGIS API for JavaScript 4.2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 21:44:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-the-portal-for-layers-within-a/m-p/397532#M36631</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2017-01-19T21:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to query the portal for layers within a specific geometry?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-the-portal-for-layers-within-a/m-p/397533#M36632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Undral,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the 3.19 version of the JavaScript API. I was looking at the documentation here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/portal-amd.html#queryitems" title="https://developers.arcgis.com/javascript/3/jsapi/portal-amd.html#queryitems"&gt;Portal | API Reference | ArcGIS API for JavaScript 3.19&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This documentation doesn't indicate any reference to the bbox parameter. But, as you suggested, I tried adding a bbox parameter to my query parameters, and it worked! Strange that this isn't included in the JavaScript API documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 22:03:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-the-portal-for-layers-within-a/m-p/397533#M36632</guid>
      <dc:creator>JonathanBailey</dc:creator>
      <dc:date>2017-01-20T22:03:16Z</dc:date>
    </item>
  </channel>
</rss>

