<?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: Is it possible to offset the map &amp;quot;center&amp;quot;? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-offset-the-map-quot-center-quot/m-p/1512223#M12902</link>
    <description>&lt;P&gt;Is there an equivalent in the JS sdk?&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 09:05:22 GMT</pubDate>
    <dc:creator>DanMorley</dc:creator>
    <dc:date>2024-07-30T09:05:22Z</dc:date>
    <item>
      <title>Is it possible to offset the map "center"?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-offset-the-map-quot-center-quot/m-p/227828#M2715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default, when I set the LocationDisplay.AutoPanMode to Recenter, the map automatically pans so that&amp;nbsp;my current location&amp;nbsp;sits&amp;nbsp;at the center of the MapView control.&amp;nbsp; Is it possible somehow to provide an X,Y offset to the MapView so that Runtime adjusts where it thinks the visual center is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application,&amp;nbsp;I sometimes display a panel of information that floats above the left side of the map.&amp;nbsp; When this panel is open, I would like to shift the visual center of the map over to the right a certain amount to accommodate the panel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realize that I could split the screen vertically into into two separate sections - one for my panel and&amp;nbsp;one for the map.&amp;nbsp; Then I could hide the panel section when it's not needed and let the map consume the entirety of the screen.&amp;nbsp; The downside to this approach is that 1) my panel doesn't usually need the full vertical portion of the screen and 2) there is a jarring&amp;nbsp;effect as the map is repainted in the newly available space when the panel is closed, which gets worse if the panel is opened and closed a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the ArcGIS Runtime SDK for .NET v100.8.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;TheMapView.LocationDisplay.AutoPanMode = LocationDisplayAutoPanMode.Recenter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/506182_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2020 14:49:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-offset-the-map-quot-center-quot/m-p/227828#M2715</guid>
      <dc:creator>DavidSchuster</dc:creator>
      <dc:date>2020-09-02T14:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to offset the map "center"?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-offset-the-map-quot-center-quot/m-p/227829#M2716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! This is what the ViewInsets property on the MapView is made for. Let's say you have a 200px wide panel on the left overlapping your map view. In that case set the viewinsets to mapView.ViewInsets = new Thickness(200,0,0,0);&lt;BR /&gt;This will also help when you say zoom to a&amp;nbsp;geometry, it'll take this inset into account, and keep the&amp;nbsp;location you went to&amp;nbsp;in view without getting hidden behind the overlapping panel. As you open/close the panel, just update the viewinsets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2020 15:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-offset-the-map-quot-center-quot/m-p/227829#M2716</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-09-02T15:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to offset the map "center"?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-offset-the-map-quot-center-quot/m-p/227830#M2717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply, Morten!&amp;nbsp; That works great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2020 17:48:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-offset-the-map-quot-center-quot/m-p/227830#M2717</guid>
      <dc:creator>DavidSchuster</dc:creator>
      <dc:date>2020-09-02T17:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to offset the map "center"?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-offset-the-map-quot-center-quot/m-p/1512223#M12902</link>
      <description>&lt;P&gt;Is there an equivalent in the JS sdk?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 09:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-offset-the-map-quot-center-quot/m-p/1512223#M12902</guid>
      <dc:creator>DanMorley</dc:creator>
      <dc:date>2024-07-30T09:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to offset the map "center"?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-offset-the-map-quot-center-quot/m-p/1512612#M12905</link>
      <description>&lt;P&gt;I would suggest asking over in the &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bd-p/arcgis-api-for-javascript-questions" target="_self"&gt;JS forum&lt;/A&gt;&amp;nbsp;where all the JS API experts hang out.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 20:31:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/is-it-possible-to-offset-the-map-quot-center-quot/m-p/1512612#M12905</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2024-07-30T20:31:05Z</dc:date>
    </item>
  </channel>
</rss>

