<?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: How do I set the zoom for a Polygon object? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-set-the-zoom-for-a-polygon-object/m-p/1118015#M10646</link>
    <description>&lt;P&gt;Hello!&amp;nbsp; I'm not sure what you mean by setting "zoom of the polygon".&lt;/P&gt;&lt;P&gt;Would you like a Map to always open zoomed-in to a specific area, without having to call SetViewpointGeometryAsync?&amp;nbsp; Set the &lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Mapping.GeoModel.InitialViewpoint.html" target="_self"&gt;Map.InitialViewpoint&lt;/A&gt; property ahead of time.&lt;/P&gt;&lt;P&gt;Would you like to know at what scale a given geometry will fill the view? That is tricky to calculate, because the answer will depend on the location of the polygon, and size and shape of the MapView, and the Map's projection.&amp;nbsp; I cannot think of a better way to zoom to a geometry than &lt;FONT face="courier new,courier"&gt;SetViewPointGeometryAsync(geom)&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;SetViewpoint(new Viewpoint(geom))&lt;/FONT&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Nov 2021 01:53:27 GMT</pubDate>
    <dc:creator>MatveiStefarov</dc:creator>
    <dc:date>2021-11-18T01:53:27Z</dc:date>
    <item>
      <title>How do I set the zoom for a Polygon object?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-set-the-zoom-for-a-polygon-object/m-p/1117824#M10642</link>
      <description>&lt;P&gt;I'm using Map.SetViewpointGeometryAsync(myPolygon) and was wondering how to set the zoom of the polygon before using SetViewPointGeometryAsync?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 19:06:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-set-the-zoom-for-a-polygon-object/m-p/1117824#M10642</guid>
      <dc:creator>rodsan724</dc:creator>
      <dc:date>2021-11-17T19:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the zoom for a Polygon object?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-set-the-zoom-for-a-polygon-object/m-p/1118015#M10646</link>
      <description>&lt;P&gt;Hello!&amp;nbsp; I'm not sure what you mean by setting "zoom of the polygon".&lt;/P&gt;&lt;P&gt;Would you like a Map to always open zoomed-in to a specific area, without having to call SetViewpointGeometryAsync?&amp;nbsp; Set the &lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Mapping.GeoModel.InitialViewpoint.html" target="_self"&gt;Map.InitialViewpoint&lt;/A&gt; property ahead of time.&lt;/P&gt;&lt;P&gt;Would you like to know at what scale a given geometry will fill the view? That is tricky to calculate, because the answer will depend on the location of the polygon, and size and shape of the MapView, and the Map's projection.&amp;nbsp; I cannot think of a better way to zoom to a geometry than &lt;FONT face="courier new,courier"&gt;SetViewPointGeometryAsync(geom)&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;SetViewpoint(new Viewpoint(geom))&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 01:53:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-set-the-zoom-for-a-polygon-object/m-p/1118015#M10646</guid>
      <dc:creator>MatveiStefarov</dc:creator>
      <dc:date>2021-11-18T01:53:27Z</dc:date>
    </item>
  </channel>
</rss>

