<?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 Draw tool doesn't account for changes in map position after page loads in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-tool-doesn-t-account-for-changes-in-map/m-p/99743#M9122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've set up a link below to show this.&amp;nbsp; If a page loads, and you intend to have the user use the toolbar Draw tool, and you have anything happen that changes the map position, the Draw tool does not offset to account for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know how to find the offset or change of the map position, but is there a way to apply this offset to the draw tool so it draws under the cursor and accounts for the position change?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://v39.consensusdev.com/test.php"&gt;http://v39.consensusdev.com/test.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the link above just draw once, everything works.&amp;nbsp; Then expand the div, draw again, you'll notice the offset issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2011 20:48:04 GMT</pubDate>
    <dc:creator>KenDeeds</dc:creator>
    <dc:date>2011-07-07T20:48:04Z</dc:date>
    <item>
      <title>Draw tool doesn't account for changes in map position after page loads</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-tool-doesn-t-account-for-changes-in-map/m-p/99743#M9122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've set up a link below to show this.&amp;nbsp; If a page loads, and you intend to have the user use the toolbar Draw tool, and you have anything happen that changes the map position, the Draw tool does not offset to account for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know how to find the offset or change of the map position, but is there a way to apply this offset to the draw tool so it draws under the cursor and accounts for the position change?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://v39.consensusdev.com/test.php"&gt;http://v39.consensusdev.com/test.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the link above just draw once, everything works.&amp;nbsp; Then expand the div, draw again, you'll notice the offset issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 20:48:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-tool-doesn-t-account-for-changes-in-map/m-p/99743#M9122</guid>
      <dc:creator>KenDeeds</dc:creator>
      <dc:date>2011-07-07T20:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Draw tool doesn't account for changes in map position after page loads</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-tool-doesn-t-account-for-changes-in-map/m-p/99744#M9123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to update the map's size and position. Try adding the map.resize and map.reposition to your expand and hide functions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

&amp;nbsp;&amp;nbsp; function expand(){

document.getElementById('expand').style.height='110px';
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.resize();
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.reposition();

&amp;nbsp; }

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:11:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-tool-doesn-t-account-for-changes-in-map/m-p/99744#M9123</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-11T06:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Draw tool doesn't account for changes in map position after page loads</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-tool-doesn-t-account-for-changes-in-map/m-p/99745#M9124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply, did the trick.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 18:52:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-tool-doesn-t-account-for-changes-in-map/m-p/99745#M9124</guid>
      <dc:creator>KenDeeds</dc:creator>
      <dc:date>2011-07-12T18:52:28Z</dc:date>
    </item>
  </channel>
</rss>

