<?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 Question Regarding Optimizing ArcGIS data filtering by state in React.js project in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/question-regarding-optimizing-arcgis-data/m-p/1550438#M4866</link>
    <description>&lt;P&gt;We have integrated ArcGIS with our React.js project, where we are using several Feature &amp;amp; Map Server layers to display data on the map. However, we are encountering a challenge with filtering the data at the state level.&lt;/P&gt;&lt;P&gt;The issue is that our layers contain a large amount of worldwide data, and the data properties do not include a "state" field. We need to dynamically filter and display data based on a selected state, but since we do not own the layer, we cannot modify or add properties directly to it.&lt;/P&gt;&lt;P&gt;We have implemented a solution using state geometry to filter the data, but this approach is causing it to first fetch all data from the API endpoint and then show it on the map. We want to show the data as it gets from the API and not wait for the whole data to download.&lt;/P&gt;&lt;P&gt;Reference endpoint:&lt;/P&gt;&lt;P&gt;&lt;A href="https://services.arcgis.com/v01gqwM5QqNysAAi/arcgis/rest/services/Mineral_Resources_Data_System_MRDS_Compact_Version/FeatureServer/0" target="_blank"&gt;https://services.arcgis.com/v01gqwM5QqNysAAi/arcgis/rest/services/Mineral_Resources_Data_System_MRDS_Compact_Version/FeatureServer/0&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 13:53:57 GMT</pubDate>
    <dc:creator>ZachSemago</dc:creator>
    <dc:date>2024-10-21T13:53:57Z</dc:date>
    <item>
      <title>Question Regarding Optimizing ArcGIS data filtering by state in React.js project</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/question-regarding-optimizing-arcgis-data/m-p/1550438#M4866</link>
      <description>&lt;P&gt;We have integrated ArcGIS with our React.js project, where we are using several Feature &amp;amp; Map Server layers to display data on the map. However, we are encountering a challenge with filtering the data at the state level.&lt;/P&gt;&lt;P&gt;The issue is that our layers contain a large amount of worldwide data, and the data properties do not include a "state" field. We need to dynamically filter and display data based on a selected state, but since we do not own the layer, we cannot modify or add properties directly to it.&lt;/P&gt;&lt;P&gt;We have implemented a solution using state geometry to filter the data, but this approach is causing it to first fetch all data from the API endpoint and then show it on the map. We want to show the data as it gets from the API and not wait for the whole data to download.&lt;/P&gt;&lt;P&gt;Reference endpoint:&lt;/P&gt;&lt;P&gt;&lt;A href="https://services.arcgis.com/v01gqwM5QqNysAAi/arcgis/rest/services/Mineral_Resources_Data_System_MRDS_Compact_Version/FeatureServer/0" target="_blank"&gt;https://services.arcgis.com/v01gqwM5QqNysAAi/arcgis/rest/services/Mineral_Resources_Data_System_MRDS_Compact_Version/FeatureServer/0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 13:53:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/question-regarding-optimizing-arcgis-data/m-p/1550438#M4866</guid>
      <dc:creator>ZachSemago</dc:creator>
      <dc:date>2024-10-21T13:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding Optimizing ArcGIS data filtering by state in React.js project</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/question-regarding-optimizing-arcgis-data/m-p/1550581#M4867</link>
      <description>&lt;P&gt;You can try using the "geometry" and "geometryType" parameters to add a spatial filter to your requests (&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer/#request-parameters" target="_self"&gt;docs&lt;/A&gt;). Assuming the service has a properly maintained spatial index and your query geometry isn't too complex this should give you a much smaller working set.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 18:55:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/question-regarding-optimizing-arcgis-data/m-p/1550581#M4867</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2024-10-21T18:55:52Z</dc:date>
    </item>
  </channel>
</rss>

