<?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: render size and color of point using GenerateRenderer / dynamic layers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/render-size-and-color-of-point-using/m-p/78830#M7204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that I could in fact use the UniqueValueRenderer class with a dynamic layer.&amp;nbsp; I create a renderer with that class, then use its 'addValue' method to define individual markers, each with their own sizes and colors, for a specific attribute's value, then pas these renderer properties to a LayerDrawingOptions object.&amp;nbsp; I then use setLayerDrawingOptions on the specified layer to set these drawing options.&lt;BR /&gt;&lt;BR /&gt;So far it seems to work but I have only tested very small datasets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2018 12:23:10 GMT</pubDate>
    <dc:creator>deleted-user-3QvhwBivZdaR</dc:creator>
    <dc:date>2018-04-24T12:23:10Z</dc:date>
    <item>
      <title>render size and color of point using GenerateRenderer / dynamic layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/render-size-and-color-of-point-using/m-p/78829#M7203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to edit my web app so that I can change the attribute value defining the point symbols in a set of dynamic map service layers.&amp;nbsp; The points are symbolized by size and color.&lt;BR /&gt;I am not sure if this is possible? The closest example I have found is&amp;nbsp;&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/3/jssamples/renderer_dynamic_layer_change_attribute.html"&gt;here&lt;/A&gt;&amp;nbsp; - but in this example they are using class breaks only.&amp;nbsp; It appears I can also use&amp;nbsp;a&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;UniqueValueDefinition instead of the&amp;nbsp;ClassBreaksDefinition used in the example as a parameter of the&amp;nbsp;GenerateRendererTask, but in the&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/uniquevaluedefinition-amd.html"&gt;API&lt;/A&gt;&amp;nbsp;I only see a color ramp available (no change in size).&amp;nbsp; I would prefer to have defined colors and defined sizes, using the same values, with the ability to switch the defining attribute from the web interface, as in the example I included.&amp;nbsp; &amp;nbsp;This is an existing application, so I need to maintain the use of dynamic map service layers (I can't use feature layers).&lt;BR /&gt;&lt;BR /&gt;I see that a Unique Value renderer may be used for this, but that appears to only work for feature layers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Any ideas, examples? Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 16:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/render-size-and-color-of-point-using/m-p/78829#M7203</guid>
      <dc:creator>deleted-user-3QvhwBivZdaR</dc:creator>
      <dc:date>2018-02-01T16:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: render size and color of point using GenerateRenderer / dynamic layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/render-size-and-color-of-point-using/m-p/78830#M7204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that I could in fact use the UniqueValueRenderer class with a dynamic layer.&amp;nbsp; I create a renderer with that class, then use its 'addValue' method to define individual markers, each with their own sizes and colors, for a specific attribute's value, then pas these renderer properties to a LayerDrawingOptions object.&amp;nbsp; I then use setLayerDrawingOptions on the specified layer to set these drawing options.&lt;BR /&gt;&lt;BR /&gt;So far it seems to work but I have only tested very small datasets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 12:23:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/render-size-and-color-of-point-using/m-p/78830#M7204</guid>
      <dc:creator>deleted-user-3QvhwBivZdaR</dc:creator>
      <dc:date>2018-04-24T12:23:10Z</dc:date>
    </item>
  </channel>
</rss>

