<?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 SVG built from dataURI in PictureMarkerSymbol different between esri 3 and 4 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-built-from-datauri-in-picturemarkersymbol/m-p/1377233#M83521</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have an algorithm in our product that generates a pie chart in the form of an SVG data URI. This can be viewed on the browser to ensure the image is generated correctly.&lt;/P&gt;&lt;P&gt;In esri 3, the only adjustment needed to the SVG was to translate it by half the width and height of the intended graphic, agnostic across all browsers.&lt;/P&gt;&lt;P&gt;In esri 4, the same URI produces a graphic that is cut off, shrunken, and also taller than it is wide. This seems to be related to the window.devicePixelRatio but I am not able to debug further what else it is related to.&lt;/P&gt;&lt;P&gt;I have attached two codePens. Does anyone have insight into how we would have to adjust our SVG or the graphic settings to achieve the same result?&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/jacksonqiu/pen/NWJYzLv?editors=1000" target="_blank" rel="noopener"&gt;https://codepen.io/jacksonqiu/pen/NWJYzLv?editors=1000&lt;/A&gt;&amp;nbsp;(esri 3)&lt;BR /&gt;&lt;A href="https://codepen.io/jacksonqiu/pen/yLwKqXZ" target="_blank" rel="noopener"&gt;https://codepen.io/jacksonqiu/pen/yLwKqXZ&lt;/A&gt;&amp;nbsp;(esri 4)&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 19:45:07 GMT</pubDate>
    <dc:creator>JacksonQiu</dc:creator>
    <dc:date>2024-02-01T19:45:07Z</dc:date>
    <item>
      <title>SVG built from dataURI in PictureMarkerSymbol different between esri 3 and 4</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-built-from-datauri-in-picturemarkersymbol/m-p/1377233#M83521</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have an algorithm in our product that generates a pie chart in the form of an SVG data URI. This can be viewed on the browser to ensure the image is generated correctly.&lt;/P&gt;&lt;P&gt;In esri 3, the only adjustment needed to the SVG was to translate it by half the width and height of the intended graphic, agnostic across all browsers.&lt;/P&gt;&lt;P&gt;In esri 4, the same URI produces a graphic that is cut off, shrunken, and also taller than it is wide. This seems to be related to the window.devicePixelRatio but I am not able to debug further what else it is related to.&lt;/P&gt;&lt;P&gt;I have attached two codePens. Does anyone have insight into how we would have to adjust our SVG or the graphic settings to achieve the same result?&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/jacksonqiu/pen/NWJYzLv?editors=1000" target="_blank" rel="noopener"&gt;https://codepen.io/jacksonqiu/pen/NWJYzLv?editors=1000&lt;/A&gt;&amp;nbsp;(esri 3)&lt;BR /&gt;&lt;A href="https://codepen.io/jacksonqiu/pen/yLwKqXZ" target="_blank" rel="noopener"&gt;https://codepen.io/jacksonqiu/pen/yLwKqXZ&lt;/A&gt;&amp;nbsp;(esri 4)&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 19:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-built-from-datauri-in-picturemarkersymbol/m-p/1377233#M83521</guid>
      <dc:creator>JacksonQiu</dc:creator>
      <dc:date>2024-02-01T19:45:07Z</dc:date>
    </item>
  </channel>
</rss>

