<?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 Convert Polygon to Extent in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-polygon-to-extent/m-p/1250241#M79998</link>
    <description>&lt;P&gt;Because the range of the extent is 4 points, it is different from the range drawn by the polygon. Is there a way to make them similar, or is there a way to convert a Polygon object to an Extent object?&lt;/P&gt;&lt;P&gt;I use BaseElevationLayer and I need to give it an extent, I want it to be the polygon that draws the blue part.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wade_0-1674528730425.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61021i0BBCDF9E76032310/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wade_0-1674528730425.png" alt="Wade_0-1674528730425.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; const CElevationLayer = BaseElevationLayer.createSubclass({
                load: function () {
                    this._elevation = new ElevationLayer({
                         // ElevationLayer Service
                    });

                    this.addResolvingPromise(
                        this._elevation.load().then(() =&amp;gt; {
                            this.tileInfo = this._elevation.tileInfo;
                            this.spatialReference = this._elevation.spatialReference;
                            this.fullExtent = this.fullExtent || this._elevation.fullExtent;
                        })
                    );

                    return this;
                },
                fetchTile: function (level, row, col, options) {
                    return this._elevation.fetchTile(level, row, col, options).then(
                        function (data) {
                            // data
                            return data;
                        }.bind(this)
                    );
                }
            });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 02:53:10 GMT</pubDate>
    <dc:creator>Wade</dc:creator>
    <dc:date>2023-01-24T02:53:10Z</dc:date>
    <item>
      <title>Convert Polygon to Extent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-polygon-to-extent/m-p/1250241#M79998</link>
      <description>&lt;P&gt;Because the range of the extent is 4 points, it is different from the range drawn by the polygon. Is there a way to make them similar, or is there a way to convert a Polygon object to an Extent object?&lt;/P&gt;&lt;P&gt;I use BaseElevationLayer and I need to give it an extent, I want it to be the polygon that draws the blue part.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wade_0-1674528730425.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61021i0BBCDF9E76032310/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wade_0-1674528730425.png" alt="Wade_0-1674528730425.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; const CElevationLayer = BaseElevationLayer.createSubclass({
                load: function () {
                    this._elevation = new ElevationLayer({
                         // ElevationLayer Service
                    });

                    this.addResolvingPromise(
                        this._elevation.load().then(() =&amp;gt; {
                            this.tileInfo = this._elevation.tileInfo;
                            this.spatialReference = this._elevation.spatialReference;
                            this.fullExtent = this.fullExtent || this._elevation.fullExtent;
                        })
                    );

                    return this;
                },
                fetchTile: function (level, row, col, options) {
                    return this._elevation.fetchTile(level, row, col, options).then(
                        function (data) {
                            // data
                            return data;
                        }.bind(this)
                    );
                }
            });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 02:53:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-polygon-to-extent/m-p/1250241#M79998</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2023-01-24T02:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Polygon to Extent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-polygon-to-extent/m-p/1250253#M79999</link>
      <description>&lt;P&gt;every polygon has a built-in "extent" property, which is what you need&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 16:22:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-polygon-to-extent/m-p/1250253#M79999</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2023-01-22T16:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Polygon to Extent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-polygon-to-extent/m-p/1250284#M80003</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/36894"&gt;@MichaelLev&lt;/a&gt;&amp;nbsp; Sorry,question updated, my question may not have been expressed clearly.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 02:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-polygon-to-extent/m-p/1250284#M80003</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2023-01-23T02:16:46Z</dc:date>
    </item>
  </channel>
</rss>

