<?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: Inconsistent scale during MapImageLayer export when using browser zoom in ArcGIS JavaScript SDK in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inconsistent-scale-during-mapimagelayer-export/m-p/1563352#M86156</link>
    <description>&lt;P&gt;Can somebody answer?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2024 06:49:47 GMT</pubDate>
    <dc:creator>mattheol</dc:creator>
    <dc:date>2024-11-29T06:49:47Z</dc:date>
    <item>
      <title>Inconsistent scale during MapImageLayer export when using browser zoom in ArcGIS JavaScript SDK</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inconsistent-scale-during-mapimagelayer-export/m-p/1561609#M86128</link>
      <description>&lt;P&gt;There is an issue related to scale inconsistency when exporting a map from a MapImageLayer while adjusting the browser zoom level.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code Example:&lt;/STRONG&gt;&lt;BR /&gt;See this&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://codepen.io/mateusz-olsztyski/pen/mdNNErB" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;SPAN&gt;CodePen&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;example&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to reproduce the issue.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case 1 (Browser Zoom 100%):&lt;BR /&gt;&lt;/STRONG&gt;Map scale: 1:10000&lt;BR /&gt;&lt;SPAN&gt;Export map calculated scale:&amp;nbsp;&lt;STRONG&gt;10000.000000001572&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;Export map link:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://msip.um.krakow.pl/arcgis/rest/services/Obserwatorium/GI_EGIB/MapServer/export?bbox=2213905.843248763%2C6454284.622140546%2C2216609.8903235244%2C6455594.312259926&amp;amp;bboxSR=102100&amp;amp;imageSR=102100&amp;amp;size=2044%2C990&amp;amp;dpi=192&amp;amp;format=png32&amp;amp;transparent=true&amp;amp;dynamicLayers=%5B%7B%22id%22%3A1%2C%22source%22%3A%7B%22type%22%3A%22mapLayer%22%2C%22mapLayerId%22%3A1%7D%7D%2C%7B%22id%22%3A0%2C%22source%22%3A%7B%22type%22%3A%22mapLayer%22%2C%22mapLayerId%22%3A0%7D%7D%5D&amp;amp;f=html" target="_blank" rel="noopener nofollow noreferrer"&gt;Export Map Case 1&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Case 2 (Browser Zoom 90%):&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Map scale: 1:10000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Export map calculated scale:&amp;nbsp;&lt;STRONG&gt;10005.539901150974&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Export map link:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://msip.um.krakow.pl/arcgis/rest/services/Obserwatorium/GI_EGIB/MapServer/export?bbox=2213755.0304471375%2C6454143.069774108%2C2216760.70312515%2C6455735.864626365&amp;amp;bboxSR=102100&amp;amp;imageSR=102100&amp;amp;size=2044%2C1083&amp;amp;dpi=172.79999542236328&amp;amp;format=png32&amp;amp;transparent=true&amp;amp;dynamicLayers=%5B%7B%22id%22%3A1%2C%22source%22%3A%7B%22type%22%3A%22mapLayer%22%2C%22mapLayerId%22%3A1%7D%7D%2C%7B%22id%22%3A0%2C%22source%22%3A%7B%22type%22%3A%22mapLayer%22%2C%22mapLayerId%22%3A0%7D%7D%5D&amp;amp;f=html" target="_blank" rel="nofollow noopener noreferrer"&gt;Export Map Case 2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected Behavior:&lt;/STRONG&gt;&lt;BR /&gt;The calculated scale during map export should remain consistent regardless of the browser zoom level. For a map scale set to 1:10000, the export should always reflect a scale of 10000.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Impact:&lt;BR /&gt;&lt;/STRONG&gt;This issue creates inconsistencies in workflows that depend on precise scale values. For example, one of the MapServer layers is visible only at scales larger than 1:10001 (the minScale for this layer is set to 1:10001).&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Case 1&lt;/STRONG&gt;, the layer will be displayed as expected.&lt;/LI&gt;&lt;LI&gt;In&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Case 2&lt;/STRONG&gt;, the layer will not be displayed, despite the map scale being set to the same value.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Technical Details:&lt;/STRONG&gt;&lt;BR /&gt;The issue appears to be related to browser zoom affecting the resolution (DPI), which in turn impacts the bbox, size, and dpi parameters used in the export operation for the MapImageLayer.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 08:12:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inconsistent-scale-during-mapimagelayer-export/m-p/1561609#M86128</guid>
      <dc:creator>mattheol</dc:creator>
      <dc:date>2024-11-22T08:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent scale during MapImageLayer export when using browser zoom in ArcGIS JavaScript SDK</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inconsistent-scale-during-mapimagelayer-export/m-p/1563352#M86156</link>
      <description>&lt;P&gt;Can somebody answer?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 06:49:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inconsistent-scale-during-mapimagelayer-export/m-p/1563352#M86156</guid>
      <dc:creator>mattheol</dc:creator>
      <dc:date>2024-11-29T06:49:47Z</dc:date>
    </item>
  </channel>
</rss>

