<?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 Zoom to extent splits features on date line in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-extent-splits-features-on-date-line/m-p/348987#M32310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have linear features that&amp;nbsp;span the Pacific. When those features are queried in the application the map zooms to the feature but centers on 0° resulting in a 'split' view of the linear graphic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how I display my results:&lt;/P&gt;&lt;P&gt;var queryExtent = graphicsUtils.graphicsExtent(results.features); &lt;BR /&gt; map.setExtent(queryExtent, true);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to do this other than using graphicsExtent?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;PW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2017 20:57:58 GMT</pubDate>
    <dc:creator>PatrckWild</dc:creator>
    <dc:date>2017-02-24T20:57:58Z</dc:date>
    <item>
      <title>Zoom to extent splits features on date line</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-extent-splits-features-on-date-line/m-p/348987#M32310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have linear features that&amp;nbsp;span the Pacific. When those features are queried in the application the map zooms to the feature but centers on 0° resulting in a 'split' view of the linear graphic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how I display my results:&lt;/P&gt;&lt;P&gt;var queryExtent = graphicsUtils.graphicsExtent(results.features); &lt;BR /&gt; map.setExtent(queryExtent, true);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to do this other than using graphicsExtent?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;PW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 20:57:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-extent-splits-features-on-date-line/m-p/348987#M32310</guid>
      <dc:creator>PatrckWild</dc:creator>
      <dc:date>2017-02-24T20:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to extent splits features on date line</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-extent-splits-features-on-date-line/m-p/348988#M32311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using&amp;nbsp;a different method and SceneView, but am facing&amp;nbsp;a similar problem. Because the feature set I am using straddles the date line, the scene zooms to Africa. From this perspective, I cannot actually see any of the features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;view.goTo(layer.queryExtent())&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2019 14:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-extent-splits-features-on-date-line/m-p/348988#M32311</guid>
      <dc:creator>MatthewHamilton-Smith</dc:creator>
      <dc:date>2019-09-20T14:52:19Z</dc:date>
    </item>
  </channel>
</rss>

