<?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 setMaxExtent on ArcGISTiledMapServiceLayer does not work in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/setmaxextent-on-arcgistiledmapservicelayer-does/m-p/636309#M4382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my app i'm using ESRI web service maps:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #6a8759;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FWorld_Imagery%2FMapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm loading the map into a ArcGISTiledMapServiceLayer layer and when the event for Layer loaded is up, i set the extent &amp;amp; scale as so:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #cc7832;"&gt;double &lt;/SPAN&gt;minscale = layer.getMinScale()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;double &lt;/SPAN&gt;maxscale = layer.getMaxScale()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;CustomMapView.&lt;SPAN style="color: #cc7832;"&gt;this&lt;/SPAN&gt;.setMaxScale(maxscale)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;CustomMapView.&lt;SPAN style="color: #cc7832;"&gt;this&lt;/SPAN&gt;.setMinScale(minscale)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;Envelope boundaries = layer.getFullExtent()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;CustomMapView.&lt;SPAN style="color: #cc7832;"&gt;this&lt;/SPAN&gt;.setMaxExtent(boundaries)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #cc7832;"&gt;But it doesn't work, and i can pan up and down to see the square grid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #cc7832;"&gt;Why is that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #cc7832;"&gt;How do i fix it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;IMG alt="2016-03-23 12.41.53.png" class="image-1 jive-image" src="/legacyfs/online/192950_2016-03-23 12.41.53.png" style="width: 620px; height: 194px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2016 23:17:28 GMT</pubDate>
    <dc:creator>Shaulezrac</dc:creator>
    <dc:date>2016-03-23T23:17:28Z</dc:date>
    <item>
      <title>setMaxExtent on ArcGISTiledMapServiceLayer does not work</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/setmaxextent-on-arcgistiledmapservicelayer-does/m-p/636309#M4382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my app i'm using ESRI web service maps:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #6a8759;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FWorld_Imagery%2FMapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm loading the map into a ArcGISTiledMapServiceLayer layer and when the event for Layer loaded is up, i set the extent &amp;amp; scale as so:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #cc7832;"&gt;double &lt;/SPAN&gt;minscale = layer.getMinScale()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;double &lt;/SPAN&gt;maxscale = layer.getMaxScale()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;CustomMapView.&lt;SPAN style="color: #cc7832;"&gt;this&lt;/SPAN&gt;.setMaxScale(maxscale)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;CustomMapView.&lt;SPAN style="color: #cc7832;"&gt;this&lt;/SPAN&gt;.setMinScale(minscale)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;Envelope boundaries = layer.getFullExtent()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;CustomMapView.&lt;SPAN style="color: #cc7832;"&gt;this&lt;/SPAN&gt;.setMaxExtent(boundaries)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #cc7832;"&gt;But it doesn't work, and i can pan up and down to see the square grid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #cc7832;"&gt;Why is that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #cc7832;"&gt;How do i fix it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;IMG alt="2016-03-23 12.41.53.png" class="image-1 jive-image" src="/legacyfs/online/192950_2016-03-23 12.41.53.png" style="width: 620px; height: 194px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 23:17:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/setmaxextent-on-arcgistiledmapservicelayer-does/m-p/636309#M4382</guid>
      <dc:creator>Shaulezrac</dc:creator>
      <dc:date>2016-03-23T23:17:28Z</dc:date>
    </item>
  </channel>
</rss>

