<?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: MapView center point in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/mapview-center-point/m-p/172390#M480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The current area covered by your mapview is the ViewPoint.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read the Viewpoint into an Envelope geometry.&amp;nbsp; From that Envelope you can call getCenter() which is the centre point of your screen&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Envelope extent = (Envelope) &lt;SPAN style="color: #9876aa;"&gt;mapView&lt;/SPAN&gt;.getCurrentViewpoint(Viewpoint.Type.&lt;SPAN style="color: #9876aa;"&gt;BOUNDING_GEOMETRY&lt;/SPAN&gt;).getTargetGeometry()&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;
System.&lt;SPAN style="color: #9876aa;"&gt;out&lt;/SPAN&gt;.println(&lt;SPAN style="color: #6a8759;"&gt;"extent " &lt;/SPAN&gt;+ extent.toString())&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;System.&lt;SPAN style="color: #9876aa;"&gt;out&lt;/SPAN&gt;.println(&lt;SPAN style="color: #6a8759;"&gt;"centre " &lt;/SPAN&gt;+ extent.getCenter().toString())&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Is this what you are after?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 08:55:12 GMT</pubDate>
    <dc:creator>MarkBaird</dc:creator>
    <dc:date>2021-12-11T08:55:12Z</dc:date>
    <item>
      <title>MapView center point</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/mapview-center-point/m-p/172389#M479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get MapView's center point using method if there is any? or Hints how to get it from MapView in arcgis java sdk?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2019 09:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/mapview-center-point/m-p/172389#M479</guid>
      <dc:creator>S_MMaruf</dc:creator>
      <dc:date>2019-08-13T09:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: MapView center point</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/mapview-center-point/m-p/172390#M480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The current area covered by your mapview is the ViewPoint.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read the Viewpoint into an Envelope geometry.&amp;nbsp; From that Envelope you can call getCenter() which is the centre point of your screen&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Envelope extent = (Envelope) &lt;SPAN style="color: #9876aa;"&gt;mapView&lt;/SPAN&gt;.getCurrentViewpoint(Viewpoint.Type.&lt;SPAN style="color: #9876aa;"&gt;BOUNDING_GEOMETRY&lt;/SPAN&gt;).getTargetGeometry()&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;
System.&lt;SPAN style="color: #9876aa;"&gt;out&lt;/SPAN&gt;.println(&lt;SPAN style="color: #6a8759;"&gt;"extent " &lt;/SPAN&gt;+ extent.toString())&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;System.&lt;SPAN style="color: #9876aa;"&gt;out&lt;/SPAN&gt;.println(&lt;SPAN style="color: #6a8759;"&gt;"centre " &lt;/SPAN&gt;+ extent.getCenter().toString())&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Is this what you are after?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/mapview-center-point/m-p/172390#M480</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2021-12-11T08:55:12Z</dc:date>
    </item>
  </channel>
</rss>

