<?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 Customized layer displaying data off-set the right location in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customized-layer-displaying-data-off-set-the-right/m-p/156994#M14663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created a customized layer by&amp;nbsp;subclassing GraphicsLayer, a customized layer view by subclassing BaseLayerView2D. The data was displayed at the right location on screen with &lt;STRONG&gt;devicePixelRatio=1.0&lt;/STRONG&gt;, but the data is off-set the right location when displayed on a screen with &lt;STRONG&gt;devicePixelRatio=1.25&lt;/STRONG&gt;. As zoom in/out, the location also changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where and how should I take into account the devicePixelRation? In the view's render() method?&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;&lt;P&gt;Rose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2020 20:25:24 GMT</pubDate>
    <dc:creator>RoseZhou2</dc:creator>
    <dc:date>2020-08-10T20:25:24Z</dc:date>
    <item>
      <title>Customized layer displaying data off-set the right location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customized-layer-displaying-data-off-set-the-right/m-p/156994#M14663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created a customized layer by&amp;nbsp;subclassing GraphicsLayer, a customized layer view by subclassing BaseLayerView2D. The data was displayed at the right location on screen with &lt;STRONG&gt;devicePixelRatio=1.0&lt;/STRONG&gt;, but the data is off-set the right location when displayed on a screen with &lt;STRONG&gt;devicePixelRatio=1.25&lt;/STRONG&gt;. As zoom in/out, the location also changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where and how should I take into account the devicePixelRation? In the view's render() method?&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;&lt;P&gt;Rose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 20:25:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customized-layer-displaying-data-off-set-the-right/m-p/156994#M14663</guid>
      <dc:creator>RoseZhou2</dc:creator>
      <dc:date>2020-08-10T20:25:24Z</dc:date>
    </item>
  </channel>
</rss>

