<?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 Apply color in color field to stream layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-color-in-color-field-to-stream-layer/m-p/1391789#M83872</link>
    <description>&lt;P&gt;Here is what i obtained when i subscribe to my sreamserver: (&lt;A href="https://polaris-geoevent.polaris.phedre.fr:6443/arcgis/rest/services/TrackPoint/StreamServer/subscribe" target="_blank"&gt;https://...-geoevent...fr:6443/arcgis/rest/services/TrackPoint/StreamServer/subscribe&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;{"geometry":{"x":4.424,"y":43.7625,"z":93.84,"spatialReference":{"wkid":4326}},"attributes":{"id":"001","timestamp":0,"colorRGB":"#0000ff","globalid":"{F4D861BD-1261-1AF5-8851-020F03DFE0BB}"}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;{"geometry":{"x":4.4293,"y":43.7548,"z":94.4449,"spatialReference":{"wkid":4326}},"attributes":{"id":"002","timestamp":0,"colorRGB":"#00ff00","globalid":"{84E0E7FD-0EE8-E6AA-47B8-F2AA3445764D}"}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;my code in js:&lt;/P&gt;&lt;P&gt;Create a SimpleMarkerSymbol&lt;BR /&gt;const symbol = new SimpleMarkerSymbol({&lt;BR /&gt;size: 10,&lt;/P&gt;&lt;P&gt;//color: "#0000ff",&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;Create a SimpleRenderer&lt;BR /&gt;const renderer = new SimpleRenderer({&lt;BR /&gt;symbol: symbol,&lt;BR /&gt;visualVariables: [{&lt;BR /&gt;type: "color",&lt;BR /&gt;field: "colorRGB",&lt;BR /&gt;}]&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;const streamLayerTrackPoint = new StreamLayer({&lt;BR /&gt;url: "&lt;A href="https://polaris-geoevent.polaris.phedre.fr:6443/arcgis/rest/services/TrackPoint/StreamServer" target="_blank" rel="noopener"&gt;https://polaris-geoevent.polaris.phedre.fr:6443/arcgis/rest/services/TrackPoint/StreamServer&lt;/A&gt;",&lt;BR /&gt;purgeOptions: {&lt;BR /&gt;displayCount: 10000&lt;BR /&gt;},&lt;BR /&gt;renderer: renderer&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;map.add(streamLayerTrackPoint);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The points displayed on the map are transparent, it seems that the color field "colorRGB" are not applied. I don't know why. Please help!!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2024 13:34:16 GMT</pubDate>
    <dc:creator>nhatquangho96</dc:creator>
    <dc:date>2024-03-06T13:34:16Z</dc:date>
    <item>
      <title>Apply color in color field to stream layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-color-in-color-field-to-stream-layer/m-p/1391789#M83872</link>
      <description>&lt;P&gt;Here is what i obtained when i subscribe to my sreamserver: (&lt;A href="https://polaris-geoevent.polaris.phedre.fr:6443/arcgis/rest/services/TrackPoint/StreamServer/subscribe" target="_blank"&gt;https://...-geoevent...fr:6443/arcgis/rest/services/TrackPoint/StreamServer/subscribe&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;{"geometry":{"x":4.424,"y":43.7625,"z":93.84,"spatialReference":{"wkid":4326}},"attributes":{"id":"001","timestamp":0,"colorRGB":"#0000ff","globalid":"{F4D861BD-1261-1AF5-8851-020F03DFE0BB}"}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;{"geometry":{"x":4.4293,"y":43.7548,"z":94.4449,"spatialReference":{"wkid":4326}},"attributes":{"id":"002","timestamp":0,"colorRGB":"#00ff00","globalid":"{84E0E7FD-0EE8-E6AA-47B8-F2AA3445764D}"}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;my code in js:&lt;/P&gt;&lt;P&gt;Create a SimpleMarkerSymbol&lt;BR /&gt;const symbol = new SimpleMarkerSymbol({&lt;BR /&gt;size: 10,&lt;/P&gt;&lt;P&gt;//color: "#0000ff",&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;Create a SimpleRenderer&lt;BR /&gt;const renderer = new SimpleRenderer({&lt;BR /&gt;symbol: symbol,&lt;BR /&gt;visualVariables: [{&lt;BR /&gt;type: "color",&lt;BR /&gt;field: "colorRGB",&lt;BR /&gt;}]&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;const streamLayerTrackPoint = new StreamLayer({&lt;BR /&gt;url: "&lt;A href="https://polaris-geoevent.polaris.phedre.fr:6443/arcgis/rest/services/TrackPoint/StreamServer" target="_blank" rel="noopener"&gt;https://polaris-geoevent.polaris.phedre.fr:6443/arcgis/rest/services/TrackPoint/StreamServer&lt;/A&gt;",&lt;BR /&gt;purgeOptions: {&lt;BR /&gt;displayCount: 10000&lt;BR /&gt;},&lt;BR /&gt;renderer: renderer&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;map.add(streamLayerTrackPoint);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The points displayed on the map are transparent, it seems that the color field "colorRGB" are not applied. I don't know why. Please help!!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 13:34:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-color-in-color-field-to-stream-layer/m-p/1391789#M83872</guid>
      <dc:creator>nhatquangho96</dc:creator>
      <dc:date>2024-03-06T13:34:16Z</dc:date>
    </item>
  </channel>
</rss>

