<?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 Suggestion in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/suggestion/m-p/598606#M1825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use mapView class in my java Application project to view an interactive map. By clicking on a separate button, I want the mapView's corner Coordinates. I am using &lt;STRONG&gt;mapView.getPolygon().&amp;nbsp;&lt;/STRONG&gt;My problem is that i always get same polygon also when map already got panned by using "&lt;STRONG&gt;drag and drop&lt;/STRONG&gt;". How do I ensure that i get updated corner coordinates after the "drag and drop"? what is the correct approach?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Aug 2019 13:21:50 GMT</pubDate>
    <dc:creator>S_MMaruf</dc:creator>
    <dc:date>2019-08-06T13:21:50Z</dc:date>
    <item>
      <title>Suggestion</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/suggestion/m-p/598606#M1825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use mapView class in my java Application project to view an interactive map. By clicking on a separate button, I want the mapView's corner Coordinates. I am using &lt;STRONG&gt;mapView.getPolygon().&amp;nbsp;&lt;/STRONG&gt;My problem is that i always get same polygon also when map already got panned by using "&lt;STRONG&gt;drag and drop&lt;/STRONG&gt;". How do I ensure that i get updated corner coordinates after the "drag and drop"? what is the correct approach?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2019 13:21:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/suggestion/m-p/598606#M1825</guid>
      <dc:creator>S_MMaruf</dc:creator>
      <dc:date>2019-08-06T13:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/suggestion/m-p/598607#M1826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just want to make sure you are using the ArcGIS Runtime SDK for Java as in this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/java/" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/java/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I ask is that there isn't a getPolygon method on the JavaFX control in this API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also want to double check what you mean by "drag and drop"?&amp;nbsp; Are you just referring to panning the map to another location?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are after the current extent of you map, then you will be interested in the map's viewpoint.&amp;nbsp; The code below shows how you could use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #9876aa;"&gt;mapView&lt;/SPAN&gt;.addDrawStatusChangedListener(listener -&amp;gt; {
    System.&lt;SPAN style="color: #9876aa;"&gt;out&lt;/SPAN&gt;.println(&lt;SPAN style="color: #6a8759;"&gt;"draw status" &lt;/SPAN&gt;+ listener.getDrawStatus())&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;    &lt;/SPAN&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;&lt;SPAN style="color: #cc7832;"&gt;    if &lt;/SPAN&gt;(listener.getDrawStatus() == DrawStatus.&lt;SPAN style="color: #9876aa;"&gt;COMPLETED&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;&lt;SPAN style="color: #cc7832;"&gt;    &lt;/SPAN&gt;}
})&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:42:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/suggestion/m-p/598607#M1826</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2021-12-12T01:42:13Z</dc:date>
    </item>
  </channel>
</rss>

