<?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: Create a Dynamic Data Source For a GeoJSONLayer's URL in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-dynamic-data-source-for-a-geojsonlayer-s/m-p/1270919#M80642</link>
    <description>&lt;P&gt;To update the symbology, you should be able to set a new renderer on the layer instead of having to call `refresh()`, as shown in the following code snippet.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// clone renderer
let renderer = layer.renderer.clone();
// make updates
renderer.symbol = {
   type: "simple-fill",
   color: "red"
};
// apply renderer back to layer
layer.renderer = renderer;&lt;/LI-CODE&gt;&lt;P&gt;Here's an example:&amp;nbsp;&lt;A href="https://codepen.io/annefitz/pen/BaOGMOv?editors=1000" target="_blank"&gt;https://codepen.io/annefitz/pen/BaOGMOv?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 15:28:21 GMT</pubDate>
    <dc:creator>AnneFitz</dc:creator>
    <dc:date>2023-03-23T15:28:21Z</dc:date>
    <item>
      <title>Create a Dynamic Data Source For a GeoJSONLayer's URL</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-dynamic-data-source-for-a-geojsonlayer-s/m-p/1270695#M80634</link>
      <description>&lt;P&gt;Hello, I initialize my GeoJSONLayer with GeoJSON data in a BLOB url. User actions are supported such as moving the GeoJSON graphic around the map and update the symbology of the graphic through the layer's Unique Value Renderer.&lt;/P&gt;&lt;P&gt;However, a symbology update requires `refresh()` to be called on the layer, which resets the location of the graphic to what it was originally defined in the BLOB. How can I retain the updated position when changing the style of the graphic?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 00:49:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-dynamic-data-source-for-a-geojsonlayer-s/m-p/1270695#M80634</guid>
      <dc:creator>platmoskito</dc:creator>
      <dc:date>2023-03-23T00:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Dynamic Data Source For a GeoJSONLayer's URL</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-dynamic-data-source-for-a-geojsonlayer-s/m-p/1270919#M80642</link>
      <description>&lt;P&gt;To update the symbology, you should be able to set a new renderer on the layer instead of having to call `refresh()`, as shown in the following code snippet.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// clone renderer
let renderer = layer.renderer.clone();
// make updates
renderer.symbol = {
   type: "simple-fill",
   color: "red"
};
// apply renderer back to layer
layer.renderer = renderer;&lt;/LI-CODE&gt;&lt;P&gt;Here's an example:&amp;nbsp;&lt;A href="https://codepen.io/annefitz/pen/BaOGMOv?editors=1000" target="_blank"&gt;https://codepen.io/annefitz/pen/BaOGMOv?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 15:28:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-dynamic-data-source-for-a-geojsonlayer-s/m-p/1270919#M80642</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-03-23T15:28:21Z</dc:date>
    </item>
  </channel>
</rss>

