<?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 bug with wrapAround180 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-bug-with-wraparound180/m-p/225099#M20936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;would this technique resolve the following 2 reported bugs?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bug NIM066689: After setting WrapAround180, when panning across the dateline, the 'extent' geometry does not wrap like a polygon geometry does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bug NIM066454: The wrapAround180 causes screen coordinates to get out of sync which breaks geometry capabilities.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/webskister&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2011 02:29:00 GMT</pubDate>
    <dc:creator>mikewebster</dc:creator>
    <dc:date>2011-08-10T02:29:00Z</dc:date>
    <item>
      <title>Map Extent bug with wrapAround180</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-bug-with-wraparound180/m-p/225096#M20933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a couple functions which call for the Map Extent.&amp;nbsp; I am also utilizing the wrapAround180.&amp;nbsp; I notice that if I continuously pan to the East (or West) the map extent grows and no longer is giving me the true Map Extent values.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can understand why this is happening but I would still consider it a bug since map.extent should give me real world values.&amp;nbsp; I am not sure if this is causing errors for other functions that get map coordinate values as well.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My questions are: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there another way to call for the map extent in this case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is anyone aware if this is causing errors for other values?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the JavaScript team aware of this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 15:49:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-bug-with-wraparound180/m-p/225096#M20933</guid>
      <dc:creator>TonyMonsour</dc:creator>
      <dc:date>2011-07-25T15:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Map Extent bug with wrapAround180</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-bug-with-wraparound180/m-p/225097#M20934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry about the confusion. This is by design to accommodate wrap-around functions. You can normalize the extent to get the real extent in the origin world. Please try the code as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (map.spatialReference._isWrappable()) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmin = esri.geometry.Extent.prototype._normalizeX(map.xmin, map.spatialReference._getInfo()).x;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmax = esri.geometry.Extent.prototype._normalizeX(map.xmax, map.spatialReference._getInfo()).x;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var realExtent = new esri.geometry.Extent(xmin, map.ymin, xmax, map.ymax, map.spatialReference);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 17:04:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-bug-with-wraparound180/m-p/225097#M20934</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2011-07-25T17:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Map Extent bug with wrapAround180</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-bug-with-wraparound180/m-p/225098#M20935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;a couple tweaks and it works great. Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;xmin = esri.geometry.Extent.prototype._normalizeX(map.extent.xmin, map.spatialReference._getInfo()).x;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmax = esri.geometry.Extent.prototype._normalizeX(map.extent.xmax, map.spatialReference._getInfo()).x;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var realExtent = new esri.geometry.Extent(xmin, map.extent.ymin, xmax, map.extent.ymax, map.spatialReference);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 20:30:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-bug-with-wraparound180/m-p/225098#M20935</guid>
      <dc:creator>TonyMonsour</dc:creator>
      <dc:date>2011-08-09T20:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Map Extent bug with wrapAround180</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-bug-with-wraparound180/m-p/225099#M20936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;would this technique resolve the following 2 reported bugs?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bug NIM066689: After setting WrapAround180, when panning across the dateline, the 'extent' geometry does not wrap like a polygon geometry does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bug NIM066454: The wrapAround180 causes screen coordinates to get out of sync which breaks geometry capabilities.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/webskister&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 02:29:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-bug-with-wraparound180/m-p/225099#M20936</guid>
      <dc:creator>mikewebster</dc:creator>
      <dc:date>2011-08-10T02:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Map Extent bug with wrapAround180</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-bug-with-wraparound180/m-p/225100#M20937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a similar workaround to this problem for the Flex API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get a garbage map extent after panning left through the IDL with wraparound.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 16:14:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-extent-bug-with-wraparound180/m-p/225100#M20937</guid>
      <dc:creator>TomAuer</dc:creator>
      <dc:date>2011-11-16T16:14:27Z</dc:date>
    </item>
  </channel>
</rss>

