<?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: [ArcGIS SDK for .Net 100.x] Using MapView.SetViewPoint specifying thickness... in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142082#M1618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Damien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapView has a method called&amp;nbsp;SetViewpointGeometryAsync that takes a geometry for setting the viewpoint and as well as a margin/padding value. I think that's what you are looking for.&lt;/P&gt;&lt;P&gt;example code&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;var curExtent = mv.GetCurrentViewpoint(ViewpointType.BoundingGeometry).TargetGeometry;&lt;BR /&gt; await mv.SetViewpointGeometryAsync(curExtent, 100);&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jan 2018 17:35:16 GMT</pubDate>
    <dc:creator>PreetiMaske</dc:creator>
    <dc:date>2018-01-09T17:35:16Z</dc:date>
    <item>
      <title>[ArcGIS SDK for .Net 100.x] Using MapView.SetViewPoint specifying thickness...</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142076#M1612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With ArcGIS Runtime version 10.2.x, it was possible to optionally specify a "margin" (thickness) on the MapView.SetViewAsync() operations. Very convenient for the map to be correctly centered when, for example, a horizontal menu bar covers the bottom of the map (but may disappear in some cases).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;await MapView1.SetViewAsync(mpYouAreHere, dblScale, tsDelay, new Thickness(0, 0, 0, Menu.ActualHeight));&lt;/PRE&gt;&lt;P&gt;I try to migrate my application to the new Runtime version 100 but I do not find this possibility.&lt;/P&gt;&lt;P&gt;There is indeed a "padding" argument in the MapView.SetViewpointGeometryAsync() method but it is of type "double" but not "thickness" ; It is therefore not possible to specify a different "margin" for the 4 sides.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an idea to help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;damien.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 12:01:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142076#M1612</guid>
      <dc:creator>DamienPONNELLE</dc:creator>
      <dc:date>2017-03-13T12:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.SetViewPoint... with Thickness...</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142077#M1613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hell Damien,&lt;/P&gt;&lt;P&gt;Support to add margin is going to be available in the&amp;nbsp;next update release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Preeti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 21:33:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142077#M1613</guid>
      <dc:creator>PreetiMaske</dc:creator>
      <dc:date>2017-03-13T21:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.SetViewPoint... with Thickness...</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142078#M1614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Preeti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cool ! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&amp;nbsp;Is there a planned&amp;nbsp;date for this next update?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;damien.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 07:15:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142078#M1614</guid>
      <dc:creator>DamienPONNELLE</dc:creator>
      <dc:date>2017-03-14T07:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.SetViewPoint... with Thickness...</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142079#M1615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most likely around summer , like May-June time frame.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 17:24:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142079#M1615</guid>
      <dc:creator>PreetiMaske</dc:creator>
      <dc:date>2017-03-15T17:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.SetViewPoint... with Thickness...</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142080#M1616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice.&amp;nbsp;Thank you for your answer. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;damien.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 08:13:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142080#M1616</guid>
      <dc:creator>DamienPONNELLE</dc:creator>
      <dc:date>2017-03-16T08:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.SetViewPoint... with Thickness...</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142081#M1617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Preeti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;I am currently testing v100.2 and I find that the possibility of specifying a "margin" (thickness) has still not been reintroduced.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;BR /&gt;&lt;SPAN&gt;Or a subtlety escaped me, which is not impossible.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;Thank you in advance for your response.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;damien.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 12:41:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142081#M1617</guid>
      <dc:creator>DamienPONNELLE</dc:creator>
      <dc:date>2018-01-09T12:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcGIS SDK for .Net 100.x] Using MapView.SetViewPoint specifying thickness...</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142082#M1618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Damien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapView has a method called&amp;nbsp;SetViewpointGeometryAsync that takes a geometry for setting the viewpoint and as well as a margin/padding value. I think that's what you are looking for.&lt;/P&gt;&lt;P&gt;example code&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;var curExtent = mv.GetCurrentViewpoint(ViewpointType.BoundingGeometry).TargetGeometry;&lt;BR /&gt; await mv.SetViewpointGeometryAsync(curExtent, 100);&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 17:35:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142082#M1618</guid>
      <dc:creator>PreetiMaske</dc:creator>
      <dc:date>2018-01-09T17:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcGIS SDK for .Net 100.x] Using MapView.SetViewPoint specifying thickness...</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142083#M1619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The margin is for ensuring a bit of space all the way around the geometry at that instant.&lt;/P&gt;&lt;P&gt;For your specific scenario where you have an overlay somewhat more permanent on top of the map, use the MapView.ViewInsets instead. Ie when you popup up your overlay, use&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; MapView.ViewInsets = new Thickness(0,0,0,overlay.ActualHeight);&lt;/P&gt;&lt;P&gt;and when you close it, set it back to 0:&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&amp;nbsp;&amp;nbsp; MapView.ViewInsets = new Thickness(0);&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;When you do that, all setviewpoint calls will automatically take the insets into account, LocationDisplay will center correct etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 19:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142083#M1619</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-01-10T19:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcGIS SDK for .Net 100.x] Using MapView.SetViewPoint specifying thickness...</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142084#M1620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;Hello Preeti,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your answer but this one does not correspond to my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the other hand, that of Morten (using MapView.ViewInsets) answers it completely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you and have a nice day.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;damien.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 07:20:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142084#M1620</guid>
      <dc:creator>DamienPONNELLE</dc:creator>
      <dc:date>2018-01-11T07:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcGIS SDK for .Net 100.x] Using MapView.SetViewPoint specifying thickness...</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142085#M1621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Morten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;Perfect !&lt;/SPAN&gt; &lt;SPAN&gt;Your answer totally corresponds to my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition, I find it elegant to be able to permanently define the "useful" area and not have to pass the thikness parameter when repositioning the card &lt;SPAN class=""&gt; (possibility offered by MapView1.SetViewAsync with SDK 10.2.x)&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nice day to you and thank you again!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;damien.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 07:29:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-sdk-for-net-100-x-using-mapview/m-p/142085#M1621</guid>
      <dc:creator>DamienPONNELLE</dc:creator>
      <dc:date>2018-01-11T07:29:16Z</dc:date>
    </item>
  </channel>
</rss>

