<?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:  Retrieve the list of points visible on the map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-the-list-of-points-visible-on-the-map/m-p/382859#M35510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in order to create something similar with the example provided you have to create and run a query task every time you change extent or move map.&lt;/P&gt;&lt;P&gt;This query Task will have as spatial geometry condition the map extent and as attributes the user parameters (money, area e.t.c).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spatially you can minimize the query using the parameter&amp;nbsp;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;query.geometry and setting equal to the current map extent.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html"&gt;Query | API Reference | ArcGIS API for JavaScript 4.0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Aug 2016 12:21:56 GMT</pubDate>
    <dc:creator>PanagiotisPapadopoulos</dc:creator>
    <dc:date>2016-08-26T12:21:56Z</dc:date>
    <item>
      <title>Retrieve the list of points visible on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-the-list-of-points-visible-on-the-map/m-p/382857#M35508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hello,&lt;BR /&gt; &lt;BR /&gt;I have a map with points of full above, or zoom in or out I want to receive on javascript the list of items that is&amp;nbsp;visible on the map , like&amp;nbsp;airbnb website&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Here is a sample list refresh suite the&amp;nbsp;zoom in/out&amp;nbsp;and move the map:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.airbnb.fr%2Fs%2FAmsterdam--Netherlands%3Fcheckin%3D31%252F08%252F2016%26checkout%3D02%252F09%252F2016%26guests%3D1%26zoom%3D15%26search_by_map%3Dtrue%26sw_lat%3D52.36775534773478%26sw_lng%3D4.828864772316706%26ne_lat%3D52.389821847948866%26ne_lng%3D4.860107142922175%26ss_id%3D8xvhp4o5%26page%3D1%26source%3Dmap%26airbnb_plus_only%3Dfalse%26s_tag%3DNkWMH4Gx" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;Top 20 des locations de vacances à Amsterdam, locations saisonnières et location d'appartements - Airbnb Amsterdam&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Thanks&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A href="https://community.esri.com/t5/tag/js api 4.0/tg-p"&gt;#js api 4.0&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 12:07:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-the-list-of-points-visible-on-the-map/m-p/382857#M35508</guid>
      <dc:creator>HaithemLabbassi</dc:creator>
      <dc:date>2016-08-26T12:07:03Z</dc:date>
    </item>
    <item>
      <title>Re:  Retrieve the list of points visible on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-the-list-of-points-visible-on-the-map/m-p/382858#M35509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked at &lt;A href="http://esri.github.io/esri-leaflet/api-reference/tasks/query.html"&gt;http://esri.github.io/esri-leaflet/api-reference/tasks/query.html&lt;/A&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example was in Leaflet, In ArcGIS JS, you could basically do the same thing.&lt;/P&gt;&lt;P&gt;Get the map extent on change and then query the feature layers. This code may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require([&lt;BR /&gt;&amp;nbsp; "esri/tasks/query", "esri/layers/FeatureLayer", ... &lt;BR /&gt;], function(Query, FeatureLayer, ... ) {&lt;BR /&gt;&amp;nbsp; var query = new Query();&lt;BR /&gt;&amp;nbsp; var featureLayer = new FeatureLayer( ... );&lt;BR /&gt;&amp;nbsp; query.geometry = feature.geometry;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /////////////////////////////////////////Plug in current map extent&lt;BR /&gt;&amp;nbsp; featureLayer.selectFeatures(query,FeatureLayer.SELECTION_NEW);&lt;BR /&gt;&amp;nbsp; ...&lt;BR /&gt;});&lt;BR /&gt;////////////////////////////////////////////////&lt;BR /&gt;&lt;BR /&gt;require(["esri/map"], function(Map) {&lt;BR /&gt;&amp;nbsp; var map = new Map( ... );&lt;BR /&gt;&amp;nbsp; map.on("extent-change", function(){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var geo = map.geographicExtent;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /////////////Plug this into the query?&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(geo.xmin, geo.ymin, geo.xmax, geo.ymax);&lt;BR /&gt;&amp;nbsp; });&lt;BR /&gt;&amp;nbsp; ...&lt;BR /&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 12:20:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-the-list-of-points-visible-on-the-map/m-p/382858#M35509</guid>
      <dc:creator>BillChappell</dc:creator>
      <dc:date>2016-08-26T12:20:17Z</dc:date>
    </item>
    <item>
      <title>Re:  Retrieve the list of points visible on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-the-list-of-points-visible-on-the-map/m-p/382859#M35510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in order to create something similar with the example provided you have to create and run a query task every time you change extent or move map.&lt;/P&gt;&lt;P&gt;This query Task will have as spatial geometry condition the map extent and as attributes the user parameters (money, area e.t.c).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spatially you can minimize the query using the parameter&amp;nbsp;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;query.geometry and setting equal to the current map extent.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html"&gt;Query | API Reference | ArcGIS API for JavaScript 4.0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 12:21:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-the-list-of-points-visible-on-the-map/m-p/382859#M35510</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2016-08-26T12:21:56Z</dc:date>
    </item>
  </channel>
</rss>

