<?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: Optimised scale for distant points in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/optimised-scale-for-distant-points/m-p/1171405#M10975</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I had tried this approach by creating the envelope myself but nothing worked because I had not specified the spatial reference frame...&lt;/P&gt;&lt;P&gt;Thanks for your solutions, they are cleaner than the one I used &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 09:55:41 GMT</pubDate>
    <dc:creator>vergerk</dc:creator>
    <dc:date>2022-05-06T09:55:41Z</dc:date>
    <item>
      <title>Optimised scale for distant points</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/optimised-scale-for-distant-points/m-p/1171090#M10970</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have defined several remote points of interest on my 2D map and the scale is not appropriate.&lt;/P&gt;&lt;P&gt;Not wanting to put an arbitrary value in &lt;STRONG&gt;&lt;EM&gt;MainMapView.SetViewpointScaleAsync(value)&lt;/EM&gt;&lt;/STRONG&gt;, is there a function to adapt the scale to display all the points present?&lt;/P&gt;&lt;P&gt;Or how is the scale calculated?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks !&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sincerely&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 14:52:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/optimised-scale-for-distant-points/m-p/1171090#M10970</guid>
      <dc:creator>vergerk</dc:creator>
      <dc:date>2022-05-05T14:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Optimised scale for distant points</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/optimised-scale-for-distant-points/m-p/1171117#M10971</link>
      <description>&lt;P&gt;If your points are in a layer it's possible to set the ViewPoint to the Layer.FullExtent envelope&lt;/P&gt;&lt;LI-CODE lang="c"&gt;myMapView.SetViewpointAsync(new Viewpoint(YourLayerEnvelope));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Of course you have to obtain the YourLayerEnvelope&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 15:39:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/optimised-scale-for-distant-points/m-p/1171117#M10971</guid>
      <dc:creator>KeithGanzenmuller</dc:creator>
      <dc:date>2022-05-05T15:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Optimised scale for distant points</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/optimised-scale-for-distant-points/m-p/1171198#M10973</link>
      <description>&lt;P&gt;If you have your point of interest geometries, you could also use &lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Geometry.GeometryEngine.CombineExtents.html#Esri_ArcGISRuntime_Geometry_GeometryEngine_CombineExtents_System_Collections_Generic_IEnumerable_Esri_ArcGISRuntime_Geometry_Geometry__" target="_blank"&gt;&lt;STRONG&gt;GeometryEngine.combineExtents&lt;/STRONG&gt;&lt;/A&gt; to get the minimal containing envelope. You can then pass that envelope to &lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/wpf/Esri.ArcGISRuntime.UI.Controls.MapView.SetViewpointGeometryAsync.html" target="_blank"&gt;&lt;STRONG&gt;MapView.SetViewpointGeometryAsync()&lt;/STRONG&gt;&lt;/A&gt;&amp;nbsp;(that's a shortcut/equivalent to the method that Keith mentioned above).&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 17:34:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/optimised-scale-for-distant-points/m-p/1171198#M10973</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2022-05-05T17:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Optimised scale for distant points</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/optimised-scale-for-distant-points/m-p/1171405#M10975</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I had tried this approach by creating the envelope myself but nothing worked because I had not specified the spatial reference frame...&lt;/P&gt;&lt;P&gt;Thanks for your solutions, they are cleaner than the one I used &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 09:55:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/optimised-scale-for-distant-points/m-p/1171405#M10975</guid>
      <dc:creator>vergerk</dc:creator>
      <dc:date>2022-05-06T09:55:41Z</dc:date>
    </item>
  </channel>
</rss>

