<?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 How To Restrict Map Panning to an Area in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410779#M2796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anyone know to restrict map panning to an area?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying to something similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.mapbox.com/mapbox-gl-js/example/restrict-bounds/" title="https://www.mapbox.com/mapbox-gl-js/example/restrict-bounds/"&gt;https://www.mapbox.com/mapbox-gl-js/example/restrict-bounds/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my ArcGIS android application. I want to restrict my basemap, so that only my campus is displayed and not the whole world.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 May 2017 01:46:51 GMT</pubDate>
    <dc:creator>ThomasSaldana</dc:creator>
    <dc:date>2017-05-22T01:46:51Z</dc:date>
    <item>
      <title>How To Restrict Map Panning to an Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410779#M2796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anyone know to restrict map panning to an area?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying to something similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.mapbox.com/mapbox-gl-js/example/restrict-bounds/" title="https://www.mapbox.com/mapbox-gl-js/example/restrict-bounds/"&gt;https://www.mapbox.com/mapbox-gl-js/example/restrict-bounds/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my ArcGIS android application. I want to restrict my basemap, so that only my campus is displayed and not the whole world.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 01:46:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410779#M2796</guid>
      <dc:creator>ThomasSaldana</dc:creator>
      <dc:date>2017-05-22T01:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: How To Restrict Map Panning to an Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410780#M2797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The following snippet of code can be used to apply a custom extent on one's basemap. In your case, it would be the extents of your campus.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Envelope myExtents = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Envelope(xmin,ymin,xmax,ymax);&lt;BR /&gt;myExtents = (Envelope) GeometryEngine.&lt;SPAN&gt;project&lt;/SPAN&gt;(myExtents, SpatialReference.&lt;SPAN&gt;create&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;102100&lt;/SPAN&gt;), &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.getSpatialReference());&lt;BR /&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.setMaxExtent(myExtents);&lt;BR /&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.setExtent(myExtents);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 09:05:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410780#M2797</guid>
      <dc:creator>MirHashmi</dc:creator>
      <dc:date>2017-05-22T09:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: How To Restrict Map Panning to an Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410781#M2798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which runtime are you trying to use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the latest runtime, this is yet to be exposed. &amp;nbsp;There is an enhancement request placed for this to be added to the new runtime:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;ENH-000104889 Add a method to set the maximum extent of the map to Android Runtime 100.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Alternatively, if you are working with the 10.2.x version of the runtime, &lt;A href="https://community.esri.com/people/mirhashmi2014"&gt;mirhashmi2014&lt;/A&gt;‌'s answer would be correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 12:59:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410781#M2798</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2017-05-22T12:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: How To Restrict Map Panning to an Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410782#M2799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. And one final question. Do you know how i would be able to find the extents of my campus in ArcMap?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 03:31:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410782#M2799</guid>
      <dc:creator>ThomasSaldana</dc:creator>
      <dc:date>2017-05-24T03:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: How To Restrict Map Panning to an Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410783#M2800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are quite a few ways to get extents of a feature. One of them is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.       Select your campus feature and zoom to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.       From the top menu click on “View” and  select “Data Frame Properties”.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.       Click on the Tab “Data Frame” and from the drop down under “Extents” select “Fixed Extent”.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.       This will show up the current extents of the current view with your selected feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Top =  YMax, Bottom = YMin, Left = XMin, Right = XMax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 06:53:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410783#M2800</guid>
      <dc:creator>MirHashmi</dc:creator>
      <dc:date>2017-05-24T06:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: How To Restrict Map Panning to an Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410784#M2801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do not have an ArcMap license, you can use this tool called extent-helper:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://davidspriggs.github.io/js-extent-helper/extentHelper/" title="http://davidspriggs.github.io/js-extent-helper/extentHelper/"&gt;JS Extent Helper&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should help you generate an extent in the web mercator projection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 13:00:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410784#M2801</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2017-05-24T13:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: How To Restrict Map Panning to an Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410785#M2802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 21:06:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410785#M2802</guid>
      <dc:creator>ThomasSaldana</dc:creator>
      <dc:date>2017-05-25T21:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: How To Restrict Map Panning to an Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410786#M2803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you kindly mark the correct answer for this question so it highlights the answer for other users who may be running into similar problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alexander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 13:09:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410786#M2803</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2017-05-26T13:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: How To Restrict Map Panning to an Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410787#M2804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can we achieve the camera bounds restriction on runtime sdk 100.1.0?&lt;/P&gt;&lt;P&gt;I have tried using&amp;nbsp;similar method:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808080;"&gt;val bounds&amp;nbsp; =&amp;nbsp; Envelope(103.6, 1.161724, 104.09, 1.478184, SpatialReference.create(4326))
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;mViewMap.setViewPoint(ViewPoint(bounds))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;*the above is in koltin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it didn't have any effect on&amp;nbsp;restricting the camera&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have loaded my map tiles using WmtsService&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:39:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410787#M2804</guid>
      <dc:creator>AndreaChua</dc:creator>
      <dc:date>2021-12-11T18:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: How To Restrict Map Panning to an Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410788#M2805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not yet implemented for runtime version 100.x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This enhancement request is currently open and our engineers are hard at work implementing it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1&gt;ENH-000104889 Add a method to set the maximum extent of the map to Android Runtime 100.0&lt;/H1&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 18:04:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410788#M2805</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2017-12-04T18:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: How To Restrict Map Panning to an Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410789#M2806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to implement same ..but in 100.3.0 its still saying "&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;setMaxExtent

&lt;/PRE&gt;&lt;P&gt;method is not available..any other work around for same??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:39:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410789#M2806</guid>
      <dc:creator>supriyashh</dc:creator>
      <dc:date>2021-12-11T18:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: How To Restrict Map Panning to an Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410790#M2807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The marked answer does not work with the ArcGIS Android 100.x API.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 20:25:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-restrict-map-panning-to-an-area/m-p/410790#M2807</guid>
      <dc:creator>CharlesLoftis</dc:creator>
      <dc:date>2018-08-16T20:25:49Z</dc:date>
    </item>
  </channel>
</rss>

