<?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 zooming is off-centered when map is at half bottom of the app in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-zooming-is-off-centered-when-map-is-at-half/m-p/471769#M3223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to use the &lt;EM&gt;setViewInsets&lt;/EM&gt; to adjust the size of MapView, the values of the insets should match the margins you try to resize the MapView in your App. If you still have problems, we need to see your layout.xml.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Dec 2019 16:45:38 GMT</pubDate>
    <dc:creator>ChanganShi</dc:creator>
    <dc:date>2019-12-31T16:45:38Z</dc:date>
    <item>
      <title>Map zooming is off-centered when map is at half bottom of the app</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-zooming-is-off-centered-when-map-is-at-half/m-p/471768#M3222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1 style="border: 0px; font-size: 2rem;"&gt;&lt;/H1&gt;&lt;P&gt;I am developing an app with ArcGIS Runtime SDK for Android 100.6.0. I used a MapView to show the ArcGis Map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapView mv = new MapView(...);&lt;/P&gt;&lt;P&gt;ArcGISMap map = new ArcGISMap(...);&lt;/P&gt;&lt;P&gt;mv.setMap(map);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works perfectly as I want. But when I tryied to resize the map to the bottom half of the app, the zoom behavior works weird.&amp;nbsp; Map zooming is off-centered, it looks like the center point is at bottom of the MapView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to set 1. height and topMargin, 2. height and gravity:Bottom to resize the MapView, both solutions work the same.&lt;/P&gt;&lt;P&gt;I also tried using setViewPointCenterasync and setViewPoint in&amp;nbsp;DefaultMapViewOnTouchListener.OnScale event, doesn't work neither.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to make the zoom behavior works correct when MapView is at bottom of the app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2019 02:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-zooming-is-off-centered-when-map-is-at-half/m-p/471768#M3222</guid>
      <dc:creator>abcesri</dc:creator>
      <dc:date>2019-12-30T02:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Map zooming is off-centered when map is at half bottom of the app</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-zooming-is-off-centered-when-map-is-at-half/m-p/471769#M3223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to use the &lt;EM&gt;setViewInsets&lt;/EM&gt; to adjust the size of MapView, the values of the insets should match the margins you try to resize the MapView in your App. If you still have problems, we need to see your layout.xml.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2019 16:45:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-zooming-is-off-centered-when-map-is-at-half/m-p/471769#M3223</guid>
      <dc:creator>ChanganShi</dc:creator>
      <dc:date>2019-12-31T16:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Map zooming is off-centered when map is at half bottom of the app</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-zooming-is-off-centered-when-map-is-at-half/m-p/471770#M3224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response. The zoom behaves correct&amp;nbsp; after using setViewInsets instead of margins, but&amp;nbsp;&lt;SPAN style="background-color: #ffffff; font-size: 15.3333px;"&gt;mapView.SetViewpointCenterAsync doesn't work correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.3333px;"&gt;&lt;SPAN&gt;Is SetViewpointCenterAsync the correct method to call if I want to center a point properly, taking the ViewInsets into account, or is there a different method I should call to center the point?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.3333px;"&gt;&lt;SPAN&gt; If it is the correct method, is there any settings I should use to correct the behavior?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.3333px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.3333px;"&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2020 03:18:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-zooming-is-off-centered-when-map-is-at-half/m-p/471770#M3224</guid>
      <dc:creator>abcesri</dc:creator>
      <dc:date>2020-01-02T03:18:12Z</dc:date>
    </item>
  </channel>
</rss>

