<?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: change color of features in stream layer service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-color-of-features-in-stream-layer-service/m-p/323378#M29775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You assign it a UniqueValue Renderer just like any other layer type:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/streamlayer-amd.html#renderer"&gt;https://developers.arcgis.com/javascript/3/jsapi/streamlayer-amd.html#renderer&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Mar 2019 19:33:05 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-03-26T19:33:05Z</dc:date>
    <item>
      <title>change color of features in stream layer service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-color-of-features-in-stream-layer-service/m-p/323377#M29774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In stream layer service, I have a "type" field&lt;/P&gt;&lt;P&gt;I was trying to make if type is "a" then color blue&lt;/P&gt;&lt;P&gt;else if "b" then red&lt;/P&gt;&lt;P&gt;else green..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; streamLayer = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; StreamLayer(url, {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;purgeOptions: {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;displayCount: 5000,&lt;/P&gt;&lt;P&gt;age: 2.5&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;map.addLayer(streamLayer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to assign color for streamLayer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 19:29:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-color-of-features-in-stream-layer-service/m-p/323377#M29774</guid>
      <dc:creator>Pa_Lotus</dc:creator>
      <dc:date>2019-03-26T19:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: change color of features in stream layer service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-color-of-features-in-stream-layer-service/m-p/323378#M29775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You assign it a UniqueValue Renderer just like any other layer type:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/streamlayer-amd.html#renderer"&gt;https://developers.arcgis.com/javascript/3/jsapi/streamlayer-amd.html#renderer&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 19:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-color-of-features-in-stream-layer-service/m-p/323378#M29775</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-03-26T19:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: change color of features in stream layer service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-color-of-features-in-stream-layer-service/m-p/323379#M29776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas; "&gt;I tried with below code but it didn't worked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; uvr2 = {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt; type: &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas; "&gt;"colorInfo"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt; field: &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas; "&gt;"event_type"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;uniqueValueInfos: [{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt; value: &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas; "&gt;"available"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt; symbol: LiSymbol&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas; "&gt;}, {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt; value: &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas; "&gt;"reserved"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt; symbol: BoSymbol}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;, {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt; value: &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas; "&gt;"unavailable"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt; symbol: ltSymbol}, {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt; value: &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas; "&gt;"removed"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt; symbol: ltSymbol}]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;streamLayer = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; StreamLayer(url, {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;renderer: uvr2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;purgeOptions: {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;displayCount: 5000,&lt;/P&gt;&lt;P&gt;age: 2.5&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;map.addLayer(streamLayer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 20:57:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-color-of-features-in-stream-layer-service/m-p/323379#M29776</guid>
      <dc:creator>Pa_Lotus</dc:creator>
      <dc:date>2019-03-26T20:57:59Z</dc:date>
    </item>
  </channel>
</rss>

