<?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: Update GeoJSONLayer URL parameter and refresh in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-geojsonlayer-url-parameter-and-refresh/m-p/1478880#M84725</link>
    <description>&lt;P&gt;I know this is an old post, but in case anyone comes across this, yes this is possible.&amp;nbsp; I wrote a LinkedIn article on this a while ago:&amp;nbsp;&lt;A href="https://www.linkedin.com/pulse/how-load-geojson-from-postgres-using-bounding-box-arcgis-donoghue" target="_blank"&gt;https://www.linkedin.com/pulse/how-load-geojson-from-postgres-using-bounding-box-arcgis-donoghue&lt;/A&gt;&amp;nbsp;- how to load GeoJSON using a bounding box.&amp;nbsp; You shouldn't change the URL, you should just change the query string parameters using the custom parameters for the layer.&amp;nbsp; If you really do have different URLs and cannot change them, then you can set up a service that handles the different URLs, and then use that service URL in your app.&amp;nbsp; I occasionally do this when I need to integrate non-ArcGIS systems with ArcGIS Enterprise or ArcGIS Online.&lt;/P&gt;</description>
    <pubDate>Sun, 26 May 2024 10:19:14 GMT</pubDate>
    <dc:creator>rhys-kdrm</dc:creator>
    <dc:date>2024-05-26T10:19:14Z</dc:date>
    <item>
      <title>Update GeoJSONLayer URL parameter and refresh</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-geojsonlayer-url-parameter-and-refresh/m-p/1146709#M76434</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Is it possible to change the URL property of a GeoJSONLayer and .refresh(), so that it fetches a new set of data, overwrites the previous one and displays it on the map?&lt;/P&gt;&lt;P&gt;I need a different URL, not just a different query string, which I know it is possible by using .createQuery()&amp;nbsp; .queryFeatures().&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 21:41:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-geojsonlayer-url-parameter-and-refresh/m-p/1146709#M76434</guid>
      <dc:creator>ArnauForner</dc:creator>
      <dc:date>2022-02-22T21:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Update GeoJSONLayer URL parameter and refresh</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-geojsonlayer-url-parameter-and-refresh/m-p/1147333#M76466</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This cannot be done and goes for all layers. You'd have to create a new instance of GeoJSONLayer for each unique URLs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 23:37:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-geojsonlayer-url-parameter-and-refresh/m-p/1147333#M76466</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-02-23T23:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Update GeoJSONLayer URL parameter and refresh</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-geojsonlayer-url-parameter-and-refresh/m-p/1478880#M84725</link>
      <description>&lt;P&gt;I know this is an old post, but in case anyone comes across this, yes this is possible.&amp;nbsp; I wrote a LinkedIn article on this a while ago:&amp;nbsp;&lt;A href="https://www.linkedin.com/pulse/how-load-geojson-from-postgres-using-bounding-box-arcgis-donoghue" target="_blank"&gt;https://www.linkedin.com/pulse/how-load-geojson-from-postgres-using-bounding-box-arcgis-donoghue&lt;/A&gt;&amp;nbsp;- how to load GeoJSON using a bounding box.&amp;nbsp; You shouldn't change the URL, you should just change the query string parameters using the custom parameters for the layer.&amp;nbsp; If you really do have different URLs and cannot change them, then you can set up a service that handles the different URLs, and then use that service URL in your app.&amp;nbsp; I occasionally do this when I need to integrate non-ArcGIS systems with ArcGIS Enterprise or ArcGIS Online.&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 10:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-geojsonlayer-url-parameter-and-refresh/m-p/1478880#M84725</guid>
      <dc:creator>rhys-kdrm</dc:creator>
      <dc:date>2024-05-26T10:19:14Z</dc:date>
    </item>
  </channel>
</rss>

