<?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 Get user current view polygon coordinates in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-current-view-polygon-coordinates/m-p/1158732#M76843</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i know there is a way to get the user's current mouse coordinates, but i wonder if there is a way to get the user's current view polygon, which means the coordinates of each corner on the map.&lt;/P&gt;&lt;P&gt;The reason behind this, is that i want to show the user points that are only on his current view range, so i need to know which points should i fetch and which not.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 08:50:00 GMT</pubDate>
    <dc:creator>orahlagi</dc:creator>
    <dc:date>2022-03-29T08:50:00Z</dc:date>
    <item>
      <title>Get user current view polygon coordinates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-current-view-polygon-coordinates/m-p/1158732#M76843</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i know there is a way to get the user's current mouse coordinates, but i wonder if there is a way to get the user's current view polygon, which means the coordinates of each corner on the map.&lt;/P&gt;&lt;P&gt;The reason behind this, is that i want to show the user points that are only on his current view range, so i need to know which points should i fetch and which not.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 08:50:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-current-view-polygon-coordinates/m-p/1158732#M76843</guid>
      <dc:creator>orahlagi</dc:creator>
      <dc:date>2022-03-29T08:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get user current view polygon coordinates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-current-view-polygon-coordinates/m-p/1158756#M76845</link>
      <description>&lt;P&gt;Update: using the watchUtils i can get the 'extent' property which gives me xmin,xmax,ymin,ymax.&lt;/P&gt;&lt;P&gt;I'm not sure how this data can help me to get the real coordinates, maybe someone can shed some light.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 11:06:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-current-view-polygon-coordinates/m-p/1158756#M76845</guid>
      <dc:creator>orahlagi</dc:creator>
      <dc:date>2022-03-29T11:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get user current view polygon coordinates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-current-view-polygon-coordinates/m-p/1158874#M76848</link>
      <description>&lt;P&gt;Depending on how you're going to use it, you should be able to directly use the MapView.extent as the 'search/selecting/etc' geometry.&amp;nbsp; If you absolutely need the geometry as a Polygon then maybe check out the '&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#fromExtent" target="_self"&gt;fromExtent()&lt;/A&gt;' static method.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 15:03:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-current-view-polygon-coordinates/m-p/1158874#M76848</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2022-03-29T15:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get user current view polygon coordinates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-current-view-polygon-coordinates/m-p/1159251#M76860</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I need the geometry for the server, so i am able to get a polygon from the extent, and i'm getting "rings" array which are the xmin,ymax etc of the extent, question is, can i convert it to real coordinates somehow?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;0: (2) [-9287098.97013145, 4619242.716943042]
1: (2) [-9287098.97013145, 5326132.3545241635]
2: (2) [-7173768.012103459, 5326132.3545241635]
3: (2) [-7173768.012103459, 4619242.716943042]
4: (2) [-9287098.97013145, 4619242.716943042]&lt;/LI-CODE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/11373"&gt;@JohnGrayson&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Depending on how you're going to use it, you should be able to directly use the MapView.extent as the 'search/selecting/etc' geometry.&amp;nbsp; If you absolutely need the geometry as a Polygon then maybe check out the '&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#fromExtent" target="_self"&gt;fromExtent()&lt;/A&gt;' static method.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/11373"&gt;@JohnGrayson&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Depending on how you're going to use it, you should be able to directly use the MapView.extent as the 'search/selecting/etc' geometry.&amp;nbsp; If you absolutely need the geometry as a Polygon then maybe check out the '&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#fromExtent" target="_self"&gt;fromExtent()&lt;/A&gt;' static method.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 30 Mar 2022 07:28:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-current-view-polygon-coordinates/m-p/1159251#M76860</guid>
      <dc:creator>orahlagi</dc:creator>
      <dc:date>2022-03-30T07:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get user current view polygon coordinates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-current-view-polygon-coordinates/m-p/1160544#M76907</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/573982"&gt;@orahlagi&lt;/a&gt;&amp;nbsp;these are 'real' coordinates but in I guess Webmercator-projection (wkid 3857), you want them in geographic coordinates (WGS84 wkid 4326)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that case there's a geometry-method to reproject&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-webMercatorUtils.html#webMercatorToGeographic" target="_blank" rel="noopener"&gt;webMercatorToGeographic&lt;/A&gt;&amp;nbsp;, that might help you?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 13:43:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-current-view-polygon-coordinates/m-p/1160544#M76907</guid>
      <dc:creator>collaarwaar</dc:creator>
      <dc:date>2022-04-02T13:43:10Z</dc:date>
    </item>
  </channel>
</rss>

