<?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 Coordinate offset when the map div is repositioned in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinate-offset-when-the-map-div-is-repositioned/m-p/103530#M9481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, we are experiencing the following problem with Esri's Javascript API 4:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Consider a relatively positioned map that is placed at location&amp;nbsp;x=0, y = 0 of a webpage. Now, if for some reason, the map is repositioned to let's say y = 50px (for example: We use a collapsible header div of 50px in height which is initially set to display:none, &amp;nbsp;and we expand this div (display: block) so the map is moved 50px further down the page)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if we click for example a point of a feature layer to open the popup, you need to click 50px beyond the point because somehow the coordinates are messed up internally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as you resize the window (and therefore resize the map), it the click coordinates will be correct again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any fix for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Sep 2016 13:46:31 GMT</pubDate>
    <dc:creator>yves_Ramseier</dc:creator>
    <dc:date>2016-09-01T13:46:31Z</dc:date>
    <item>
      <title>Coordinate offset when the map div is repositioned</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinate-offset-when-the-map-div-is-repositioned/m-p/103530#M9481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, we are experiencing the following problem with Esri's Javascript API 4:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Consider a relatively positioned map that is placed at location&amp;nbsp;x=0, y = 0 of a webpage. Now, if for some reason, the map is repositioned to let's say y = 50px (for example: We use a collapsible header div of 50px in height which is initially set to display:none, &amp;nbsp;and we expand this div (display: block) so the map is moved 50px further down the page)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if we click for example a point of a feature layer to open the popup, you need to click 50px beyond the point because somehow the coordinates are messed up internally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as you resize the window (and therefore resize the map), it the click coordinates will be correct again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any fix for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 13:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinate-offset-when-the-map-div-is-repositioned/m-p/103530#M9481</guid>
      <dc:creator>yves_Ramseier</dc:creator>
      <dc:date>2016-09-01T13:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate offset when the map div is repositioned</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinate-offset-when-the-map-div-is-repositioned/m-p/103531#M9482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In 3.xx you are able to call the following&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#reposition" title="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#reposition"&gt;Map | API Reference | ArcGIS API for JavaScript 3.17&lt;/A&gt;&amp;nbsp; does that work in 4.0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 13:59:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinate-offset-when-the-map-div-is-repositioned/m-p/103531#M9482</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2016-09-01T13:59:26Z</dc:date>
    </item>
  </channel>
</rss>

