<?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 How to print raster layer with client-side pixel filtering?  v3.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-print-raster-layer-with-client-side-pixel/m-p/1177158#M77466</link>
    <description>&lt;P&gt;I have a custom widget in WAB that lets the user display filtered elevation data from an image service. It uses client-side pixel filtering as this sample does.&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jssamples/layers_raster.html" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jssamples/layers_raster.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My users complains that they can't print the filtered elevation data, we're using our own print service with custom layouts. So the client-side pixel filtering info is not sent to the print service and the print includes the entire rasterdata displayed as how the image service was published.&lt;/P&gt;&lt;P&gt;If I add the image service to the map viewer in portal I can change the "symbology" of the raster to use some classification. And then print (with the same printservice as in WAB) and the classified raster displays correctly in the print.&lt;/P&gt;&lt;P&gt;So I'm thinking I should be able to "convert" the pixel-filtering to a classification with just two classes where one is transparent/invisible. But I haven't been able to set a renderer to my raster layer in my code.&lt;/P&gt;&lt;P&gt;There seems to be a .setRenderer()-function on the layer, but in the API reference it's only documented for featureLayers and not for RasterLayers. Any ideas how I can solve this?&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 11:21:50 GMT</pubDate>
    <dc:creator>MattiasEkström</dc:creator>
    <dc:date>2022-05-25T11:21:50Z</dc:date>
    <item>
      <title>How to print raster layer with client-side pixel filtering?  v3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-print-raster-layer-with-client-side-pixel/m-p/1177158#M77466</link>
      <description>&lt;P&gt;I have a custom widget in WAB that lets the user display filtered elevation data from an image service. It uses client-side pixel filtering as this sample does.&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jssamples/layers_raster.html" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jssamples/layers_raster.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My users complains that they can't print the filtered elevation data, we're using our own print service with custom layouts. So the client-side pixel filtering info is not sent to the print service and the print includes the entire rasterdata displayed as how the image service was published.&lt;/P&gt;&lt;P&gt;If I add the image service to the map viewer in portal I can change the "symbology" of the raster to use some classification. And then print (with the same printservice as in WAB) and the classified raster displays correctly in the print.&lt;/P&gt;&lt;P&gt;So I'm thinking I should be able to "convert" the pixel-filtering to a classification with just two classes where one is transparent/invisible. But I haven't been able to set a renderer to my raster layer in my code.&lt;/P&gt;&lt;P&gt;There seems to be a .setRenderer()-function on the layer, but in the API reference it's only documented for featureLayers and not for RasterLayers. Any ideas how I can solve this?&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 11:21:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-print-raster-layer-with-client-side-pixel/m-p/1177158#M77466</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2022-05-25T11:21:50Z</dc:date>
    </item>
  </channel>
</rss>

