<?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 do you change the extent on Helloworld? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-you-change-the-extent-on-helloworld/m-p/473118#M3228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could change the initExtent in the xml layout file to the one you like. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The numbers should be an Envelope I guess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could navigate and zoom to the location and zoomlevel you want and add an singletab listener to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So when you are at the location you want print the mapView.getExtent in the onsingletab method. The coordinates of this polygon you then could set as your initial extent in the xml.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2012 05:45:43 GMT</pubDate>
    <dc:creator>SimonKlein</dc:creator>
    <dc:date>2012-04-16T05:45:43Z</dc:date>
    <item>
      <title>How do you change the extent on Helloworld?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-you-change-the-extent-on-helloworld/m-p/473117#M3227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do you change the (initExtent = ) on the Helloworld application from ESRI?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just want my app to open to a different location other than San Diego.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Helloworld app's extent code looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;initExtent = "-1.3296373526814876E7 3930962.41823043 -1.2807176545789773E7 4201243.7502468005"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What projection or coordinate system is that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Need some guidance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Apr 2012 00:38:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-you-change-the-extent-on-helloworld/m-p/473117#M3227</guid>
      <dc:creator>JohnAllen</dc:creator>
      <dc:date>2012-04-15T00:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you change the extent on Helloworld?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-you-change-the-extent-on-helloworld/m-p/473118#M3228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could change the initExtent in the xml layout file to the one you like. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The numbers should be an Envelope I guess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could navigate and zoom to the location and zoomlevel you want and add an singletab listener to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So when you are at the location you want print the mapView.getExtent in the onsingletab method. The coordinates of this polygon you then could set as your initial extent in the xml.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 05:45:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-you-change-the-extent-on-helloworld/m-p/473118#M3228</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2012-04-16T05:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do you change the extent on Helloworld?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-you-change-the-extent-on-helloworld/m-p/473119#M3229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI's World Street Map - map service is in Web Mercator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I published my own map service with some point data located on the area i needed to be zoomed into, and made sure the map layer coordinate system in ArcMap was set to Web Mercator (Auxillery) then published it as a map service&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed the Hello world code to look like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JAVA CODE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;________________&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;package com.dhec.MPOS;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import com.esri.android.map.MapView;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import com.esri.android.map.ags.ArcGISDynamicMapServiceLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import com.esri.android.map.ags.ArcGISTiledMapServiceLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import android.app.Activity;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import android.os.Bundle;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class Mapscreen extends Activity {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; MapView map = null;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; /** Called when the activity is first created. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void onCreate(Bundle savedInstanceState) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; super.onCreate(savedInstanceState);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; setContentView(R.layout.mapscreen);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; // Retrieve the map and initial extent from XML layout&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map = (MapView)findViewById(R.id.map);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; // Add dynamic layer to MapView&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map.addLayer(new ArcGISTiledMapServiceLayer("" +&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;"));&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map.addLayer(new ArcGISDynamicMapServiceLayer("" +&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myserver&amp;gt;/ArcGIS/rest/services/Mobile/TESTJohn/MapServer"));&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; protected void onPause() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; super.onPause();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map.pause();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; protected void onResume() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; super.onResume();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map.unpause();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_______&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the initExtent = ""&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the initial extent from the rest service from my map service i published.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 17:55:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-you-change-the-extent-on-helloworld/m-p/473119#M3229</guid>
      <dc:creator>JohnAllen</dc:creator>
      <dc:date>2012-04-16T17:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do you change the extent on Helloworld?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-you-change-the-extent-on-helloworld/m-p/473120#M3230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Note: In the above code I removed my server name and put &amp;lt;my server&amp;gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you copy and paste, make sure you actually put your server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 17:58:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-you-change-the-extent-on-helloworld/m-p/473120#M3230</guid>
      <dc:creator>JohnAllen</dc:creator>
      <dc:date>2012-04-16T17:58:54Z</dc:date>
    </item>
  </channel>
</rss>

