<?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 Feature Layer/Service - Changing Symbols in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-service-changing-symbols/m-p/317614#M29265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My UI is set up with 2 lists. The first list shows the symbols of a selected feature layer. The second list shows options of what a symbol can be changed to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if the layer's renderer has a single picturemarkersymbol, the image displays in one list and the second list will show a series of graphics the user can select from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another example, if the layer's renderer has a collection of symbols (some picturemarkersymbols, some simplemakersymbols), all of the symbols are represented in the first list and the second list shows a series of images.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to select 1 from the first list and 1 from the second list. When the user submits, the new symbols should replace the old symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have everything done except for updating the symbols. Breaking down my code, and simplifying it, I have:&lt;/P&gt;&lt;P&gt;var path = jqueryUnorderedList.find('img')[0].attributes['src'].value;&lt;BR /&gt;map.getLayer(id).renderer.symbol.setUrl(path);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing happens. The original PMS still exist on the map. What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, what's the proper way to change renderer's completely? If I have a SMS and want to change to a PMS, do I need to setRenderer on the layer? I tried that too... nothing happens. Nothing on the map changes and nothing shows in the F12 console log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2016 19:39:38 GMT</pubDate>
    <dc:creator>TyroneBiggums</dc:creator>
    <dc:date>2016-03-07T19:39:38Z</dc:date>
    <item>
      <title>Feature Layer/Service - Changing Symbols</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-service-changing-symbols/m-p/317614#M29265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My UI is set up with 2 lists. The first list shows the symbols of a selected feature layer. The second list shows options of what a symbol can be changed to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if the layer's renderer has a single picturemarkersymbol, the image displays in one list and the second list will show a series of graphics the user can select from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another example, if the layer's renderer has a collection of symbols (some picturemarkersymbols, some simplemakersymbols), all of the symbols are represented in the first list and the second list shows a series of images.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to select 1 from the first list and 1 from the second list. When the user submits, the new symbols should replace the old symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have everything done except for updating the symbols. Breaking down my code, and simplifying it, I have:&lt;/P&gt;&lt;P&gt;var path = jqueryUnorderedList.find('img')[0].attributes['src'].value;&lt;BR /&gt;map.getLayer(id).renderer.symbol.setUrl(path);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing happens. The original PMS still exist on the map. What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, what's the proper way to change renderer's completely? If I have a SMS and want to change to a PMS, do I need to setRenderer on the layer? I tried that too... nothing happens. Nothing on the map changes and nothing shows in the F12 console log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 19:39:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-service-changing-symbols/m-p/317614#M29265</guid>
      <dc:creator>TyroneBiggums</dc:creator>
      <dc:date>2016-03-07T19:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer/Service - Changing Symbols</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-service-changing-symbols/m-p/317615#M29266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try and run yourfeaturelayername.redraw(); after you set the render?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also this is what I use to set the render of a featurelayer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html#setrenderer" title="https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html#setrenderer"&gt;FeatureLayer | API Reference | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 20:16:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-service-changing-symbols/m-p/317615#M29266</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2016-03-07T20:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer/Service - Changing Symbols</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-service-changing-symbols/m-p/317616#M29267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was it. I was missing the redraw. I didn't know it existed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the setRenderer too if the symbol is a SMS. If the symbol is already a PMS, I just setUrl... both need redraw... apparently.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 20:23:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-service-changing-symbols/m-p/317616#M29267</guid>
      <dc:creator>TyroneBiggums</dc:creator>
      <dc:date>2016-03-07T20:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer/Service - Changing Symbols</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-service-changing-symbols/m-p/317617#M29268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, I had the same issue until I decided to redraw &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 20:24:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-service-changing-symbols/m-p/317617#M29268</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2016-03-07T20:24:29Z</dc:date>
    </item>
  </channel>
</rss>

