<?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: map.extent gives back NaN values in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-gives-back-nan-values/m-p/419443#M38544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried putting that call into the map &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/map-amd.html#event-resize"&gt;resize&lt;/A&gt;&lt;SPAN&gt; (or reposition) handler? It could be that the map isn't "ready" yet when it becomes visible again by the time you ask for its extents.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jun 2014 18:43:42 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2014-06-25T18:43:42Z</dc:date>
    <item>
      <title>map.extent gives back NaN values</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-gives-back-nan-values/m-p/419442#M38543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i am working on a bug for some weeks now. when i call map.extent to get xmin, xmax, ymin and ymax sometimes i get NaN values for one or two of the values in the extent. i am not able to reproduce this behaviour! does anybody had the same isse? sometimes i get four NaN values but most of the times i get one or two NaN values. if i call map.extent like 20 times i get the error once.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;infos to the application: arcgis is integrated into a jquerymobile webapp which is of course using jquery. some actions open a jquerymobile page which overlays the arcgis map. after some actions on this page it hides and the map shows up again. after that map.extent is called and some ajax requests. i think it has something todo with the overlaying jquerymobile page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;some devs mentioned to turn of the autoResize option, which i did. it got better but it happens nevertheless.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thx for the help&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 18:32:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-gives-back-nan-values/m-p/419442#M38543</guid>
      <dc:creator>ChristianTrummer</dc:creator>
      <dc:date>2014-06-25T18:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: map.extent gives back NaN values</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-gives-back-nan-values/m-p/419443#M38544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried putting that call into the map &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/map-amd.html#event-resize"&gt;resize&lt;/A&gt;&lt;SPAN&gt; (or reposition) handler? It could be that the map isn't "ready" yet when it becomes visible again by the time you ask for its extents.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 18:43:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-gives-back-nan-values/m-p/419443#M38544</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-06-25T18:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: map.extent gives back NaN values</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-gives-back-nan-values/m-p/419444#M38545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i could try it but this will get very complicated then. i am also not sure if the resize/reposition events gets called because nothing changes in the map in the meantime. theres just a div overlay for some seconds.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 18:49:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-gives-back-nan-values/m-p/419444#M38545</guid>
      <dc:creator>ChristianTrummer</dc:creator>
      <dc:date>2014-06-25T18:49:25Z</dc:date>
    </item>
  </channel>
</rss>

