<?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 ImageryLayer performance with external service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imagerylayer-performance-with-external-service/m-p/1160915#M76916</link>
    <description>&lt;P&gt;I'm using an imageryLayer with an external service in 4.21. There is a slight delay upon initial load, pan, and zoom within the map while it is calling exportImage and is processing on the server side. Is there anything I can do to improve the performance or perceived performance upon the initial or subsequent requests?&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;let &lt;/SPAN&gt;mosaicRule = &lt;SPAN&gt;new &lt;/SPAN&gt;MosaicRule({&lt;BR /&gt;    &lt;SPAN&gt;lockRasterIds&lt;/SPAN&gt;: &lt;SPAN&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;objectId&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;method&lt;/SPAN&gt;: &lt;SPAN&gt;"lock-raster"&lt;BR /&gt;&lt;/SPAN&gt;})&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;let &lt;/SPAN&gt;rasterFunction = &lt;SPAN&gt;new &lt;/SPAN&gt;RasterFunction({&lt;BR /&gt;    &lt;SPAN&gt;functionName&lt;/SPAN&gt;: &lt;SPAN&gt;"Natural Color with DRA"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;pixelType&lt;/SPAN&gt;: &lt;SPAN&gt;"U8"&lt;BR /&gt;&lt;/SPAN&gt;})&lt;SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;let &lt;/SPAN&gt;layer = &lt;SPAN&gt;new &lt;/SPAN&gt;ImageryLayer({&lt;BR /&gt;&lt;SPAN&gt;id&lt;/SPAN&gt;: &lt;SPAN&gt;"rgbImageryLayer"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;url&lt;/SPAN&gt;: &lt;SPAN&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;serviceUrl&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;mosaicRule&lt;/SPAN&gt;: mosaicRule&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;noData&lt;/SPAN&gt;: &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;renderingRule&lt;/SPAN&gt;: rasterFunction&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;format&lt;/SPAN&gt;: &lt;SPAN&gt;"jpgpng" &lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;})&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;map.&lt;SPAN&gt;layers&lt;/SPAN&gt;.&lt;SPAN&gt;add&lt;/SPAN&gt;(layer&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://landsat2.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer/exportImage?f=image&amp;amp;bbox=-10489816.173983572%2C5392062.728110802%2C-10441431.53507912%2C5411401.2962669255&amp;amp;bboxSR=3857&amp;amp;imageSR=3857&amp;amp;size=1266%2C506&amp;amp;format=jpgpng&amp;amp;noData=0&amp;amp;mosaicRule=%7B%22ascending%22%3Atrue%2C%22lockRasterIds%22%3A%5B3150200%5D%2C%22mosaicMethod%22%3A%22esriMosaicLockRaster%22%7D&amp;amp;renderingRule=%7B%22rasterFunction%22%3A%22Natural%20Color%20with%20DRA%22%7D" target="_blank"&gt;https://landsat2.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer/exportImage?f=image&amp;amp;bbox=-10489816.173983572%2C5392062.728110802%2C-10441431.53507912%2C5411401.2962669255&amp;amp;bboxSR=3857&amp;amp;imageSR=3857&amp;amp;size=1266%2C506&amp;amp;format=jpgpng&amp;amp;noData=0&amp;amp;mosaicRule=%7B%22ascending%22%3Atrue%2C%22lockRasterIds%22%3A%5B3150200%5D%2C%22mosaicMethod%22%3A%22esriMosaicLockRaster%22%7D&amp;amp;renderingRule=%7B%22rasterFunction%22%3A%22Natural%20Color%20with%20DRA%22%7D&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2022 19:03:21 GMT</pubDate>
    <dc:creator>EricDurbin</dc:creator>
    <dc:date>2022-04-04T19:03:21Z</dc:date>
    <item>
      <title>ImageryLayer performance with external service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imagerylayer-performance-with-external-service/m-p/1160915#M76916</link>
      <description>&lt;P&gt;I'm using an imageryLayer with an external service in 4.21. There is a slight delay upon initial load, pan, and zoom within the map while it is calling exportImage and is processing on the server side. Is there anything I can do to improve the performance or perceived performance upon the initial or subsequent requests?&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;let &lt;/SPAN&gt;mosaicRule = &lt;SPAN&gt;new &lt;/SPAN&gt;MosaicRule({&lt;BR /&gt;    &lt;SPAN&gt;lockRasterIds&lt;/SPAN&gt;: &lt;SPAN&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;objectId&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;method&lt;/SPAN&gt;: &lt;SPAN&gt;"lock-raster"&lt;BR /&gt;&lt;/SPAN&gt;})&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;let &lt;/SPAN&gt;rasterFunction = &lt;SPAN&gt;new &lt;/SPAN&gt;RasterFunction({&lt;BR /&gt;    &lt;SPAN&gt;functionName&lt;/SPAN&gt;: &lt;SPAN&gt;"Natural Color with DRA"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;pixelType&lt;/SPAN&gt;: &lt;SPAN&gt;"U8"&lt;BR /&gt;&lt;/SPAN&gt;})&lt;SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;let &lt;/SPAN&gt;layer = &lt;SPAN&gt;new &lt;/SPAN&gt;ImageryLayer({&lt;BR /&gt;&lt;SPAN&gt;id&lt;/SPAN&gt;: &lt;SPAN&gt;"rgbImageryLayer"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;url&lt;/SPAN&gt;: &lt;SPAN&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;serviceUrl&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;mosaicRule&lt;/SPAN&gt;: mosaicRule&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;noData&lt;/SPAN&gt;: &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;renderingRule&lt;/SPAN&gt;: rasterFunction&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;format&lt;/SPAN&gt;: &lt;SPAN&gt;"jpgpng" &lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;})&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;map.&lt;SPAN&gt;layers&lt;/SPAN&gt;.&lt;SPAN&gt;add&lt;/SPAN&gt;(layer&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://landsat2.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer/exportImage?f=image&amp;amp;bbox=-10489816.173983572%2C5392062.728110802%2C-10441431.53507912%2C5411401.2962669255&amp;amp;bboxSR=3857&amp;amp;imageSR=3857&amp;amp;size=1266%2C506&amp;amp;format=jpgpng&amp;amp;noData=0&amp;amp;mosaicRule=%7B%22ascending%22%3Atrue%2C%22lockRasterIds%22%3A%5B3150200%5D%2C%22mosaicMethod%22%3A%22esriMosaicLockRaster%22%7D&amp;amp;renderingRule=%7B%22rasterFunction%22%3A%22Natural%20Color%20with%20DRA%22%7D" target="_blank"&gt;https://landsat2.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer/exportImage?f=image&amp;amp;bbox=-10489816.173983572%2C5392062.728110802%2C-10441431.53507912%2C5411401.2962669255&amp;amp;bboxSR=3857&amp;amp;imageSR=3857&amp;amp;size=1266%2C506&amp;amp;format=jpgpng&amp;amp;noData=0&amp;amp;mosaicRule=%7B%22ascending%22%3Atrue%2C%22lockRasterIds%22%3A%5B3150200%5D%2C%22mosaicMethod%22%3A%22esriMosaicLockRaster%22%7D&amp;amp;renderingRule=%7B%22rasterFunction%22%3A%22Natural%20Color%20with%20DRA%22%7D&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 19:03:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imagerylayer-performance-with-external-service/m-p/1160915#M76916</guid>
      <dc:creator>EricDurbin</dc:creator>
      <dc:date>2022-04-04T19:03:21Z</dc:date>
    </item>
  </channel>
</rss>

