<?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: DPI set is not the DPI send in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dpi-set-is-not-the-dpi-send/m-p/1178953#M77547</link>
    <description>&lt;P&gt;For people like me who had the same question in 2022 or later, I found out the actual DPI parameter sent in the request is multiplied by the device screen DPI, which can be accessed by window.devicePixelRatio. For example, If you want to lock the DPI to 96 for all requests regardless the device screen DPI, then set the dpi to 96/window.devicePixelRatio.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2022 12:35:33 GMT</pubDate>
    <dc:creator>JackFanZhang</dc:creator>
    <dc:date>2022-06-01T12:35:33Z</dc:date>
    <item>
      <title>DPI set is not the DPI send</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dpi-set-is-not-the-dpi-send/m-p/459354#M42417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #24292e; background-color: #ffffff; margin-top: 0px !important; margin-bottom: 16px;"&gt;When we create a new&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="background-color: rgba(27, 31, 35, 0.05); padding: 0.2em 0px;"&gt;MapImageLayer&lt;/CODE&gt;, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="background-color: rgba(27, 31, 35, 0.05); padding: 0.2em 0px;"&gt;dpi&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;send to the MapServer is not the one defined.&lt;BR /&gt;By default, the dpi is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="background-color: rgba(27, 31, 35, 0.05); padding: 0.2em 0px;"&gt;96&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;but the one send to the http GET is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="background-color: rgba(27, 31, 35, 0.05); padding: 0.2em 0px;"&gt;108&lt;/CODE&gt;.&lt;BR /&gt;&lt;EM&gt;(witch make our servers not sending the correct data)&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #24292e; background-color: #ffffff; margin-bottom: 16px;"&gt;To have the correct dpi send, we are obliged to set the dpi to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="background-color: rgba(27, 31, 35, 0.05); padding: 0.2em 0px;"&gt;(96*96)/108&lt;/CODE&gt;.&lt;/P&gt;&lt;P style="color: #24292e; background-color: #ffffff; margin-bottom: 0px !important;"&gt;Why the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="background-color: rgba(27, 31, 35, 0.05); padding: 0.2em 0px;"&gt;dpi&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;can't stay the same ? Why is it modified ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 08:22:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dpi-set-is-not-the-dpi-send/m-p/459354#M42417</guid>
      <dc:creator>ThibautDAVID</dc:creator>
      <dc:date>2017-11-10T08:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: DPI set is not the DPI send</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dpi-set-is-not-the-dpi-send/m-p/459355#M42418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends of the zoom of the OS and Navigator.&lt;BR /&gt;It's good for me to find that, but it's still a problem : user can have the zoom he want, but the dpi must still the same for the MapServer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 08:14:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dpi-set-is-not-the-dpi-send/m-p/459355#M42418</guid>
      <dc:creator>ThibautDAVID</dc:creator>
      <dc:date>2017-11-17T08:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: DPI set is not the DPI send</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dpi-set-is-not-the-dpi-send/m-p/1178953#M77547</link>
      <description>&lt;P&gt;For people like me who had the same question in 2022 or later, I found out the actual DPI parameter sent in the request is multiplied by the device screen DPI, which can be accessed by window.devicePixelRatio. For example, If you want to lock the DPI to 96 for all requests regardless the device screen DPI, then set the dpi to 96/window.devicePixelRatio.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 12:35:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dpi-set-is-not-the-dpi-send/m-p/1178953#M77547</guid>
      <dc:creator>JackFanZhang</dc:creator>
      <dc:date>2022-06-01T12:35:33Z</dc:date>
    </item>
  </channel>
</rss>

