<?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: How to setFullExtent in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-setfullextent/m-p/651028#M4473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;when i use mLayer.getFullExtent() (the mLayer is one of the mapView's layer), but it returns null, so is it possible to setFullExtent to a layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2012 07:51:48 GMT</pubDate>
    <dc:creator>dixonkwan1</dc:creator>
    <dc:date>2012-12-04T07:51:48Z</dc:date>
    <item>
      <title>How to setFullExtent</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-setfullextent/m-p/651027#M4472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I have a basic question..how to set the full extent of the layer or mapview?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 01:25:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-setfullextent/m-p/651027#M4472</guid>
      <dc:creator>dixonkwan1</dc:creator>
      <dc:date>2012-11-29T01:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to setFullExtent</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-setfullextent/m-p/651028#M4473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;when i use mLayer.getFullExtent() (the mLayer is one of the mapView's layer), but it returns null, so is it possible to setFullExtent to a layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 07:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-setfullextent/m-p/651028#M4473</guid>
      <dc:creator>dixonkwan1</dc:creator>
      <dc:date>2012-12-04T07:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to setFullExtent</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-setfullextent/m-p/651029#M4474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;when i use mLayer.getFullExtent() (the mLayer is one of the mapView's layer), but it returns null, so is it possible to setFullExtent to a layer?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll have to be sure that mLayer is initialized.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; mLayer.setOnStatusChangedListener(new OnStatusChangedListener(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final long serialVersionUID = 1L;
&amp;nbsp;&amp;nbsp; public void onStatusChanged(Object source, STATUS status){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (OnStatusChangedListener.STATUS.INITIALIZED == status) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapView.setExtent(mLayer.getFullExtent());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if(OnStatusChangedListener.STATUS.INITIALIZATION_FAILED == status){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dialog.dismiss(); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Toast toast = Toast.makeText(getApplicationContext(), "Failed to load Layer",Toast.LENGTH_SHORT);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toast.setGravity(Gravity.BOTTOM, 0, 0);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toast.show();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }


&amp;nbsp;&amp;nbsp; }
&amp;nbsp; });
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:36:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-setfullextent/m-p/651029#M4474</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2021-12-12T03:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to setFullExtent</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-setfullextent/m-p/651030#M4475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply, I have confirmed that the layer is initialized and added into mapView, but the getFullExtent is still returns null, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;btw, I found only the first layer of the mapView has FullExtent, other return null.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 01:30:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-setfullextent/m-p/651030#M4475</guid>
      <dc:creator>dixonkwan1</dc:creator>
      <dc:date>2012-12-05T01:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to setFullExtent</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-setfullextent/m-p/651031#M4476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's what the API documentation says about getFullExtent();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;getFullExtent&lt;BR /&gt;public &lt;A href="http://resources.arcgis.com/en/help/android-sdk/api/com/esri/core/geometry/Envelope.html"&gt;Envelope&lt;/A&gt; &lt;STRONG&gt;getFullExtent&lt;/STRONG&gt;()&lt;BR /&gt;Returns the full extent of the layer. Returns NULL if the layer does not have a full extent.&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;Returns:&lt;/STRONG&gt;an Envelope &lt;BR /&gt;&lt;BR /&gt;object&lt;STRONG&gt;Since:&lt;/STRONG&gt;1.0&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe your layer does not have a full extent?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look at the REST endpoint of your layer, does it have a Full Extent defined?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 11:14:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-setfullextent/m-p/651031#M4476</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2012-12-05T11:14:35Z</dc:date>
    </item>
  </channel>
</rss>

