<?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: MapView.getGrid().setVisibility(false) error in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-getgrid-setvisibility-false-error/m-p/565374#M3854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you trying to set the visibility of the grid behind the map?&amp;nbsp; That grid is the map background.&amp;nbsp; The Grid returned from the MapView.getGrid() method is a Grid on the map itself not behind.&amp;nbsp; Map Grids display index and geographic reference grids on a map, e.g. a degrees/minutes/seconds (DMS) grid label identifies the map grid using degrees, minutes, and seconds.&amp;nbsp; By default the MapView Grid is set to NONE.&amp;nbsp; The available grids can be viewed by the Enum Grid.GridType in the JavaDoc API.&amp;nbsp; Currently we only support NONE (default) and Military Grid Reference System (MGRS).&amp;nbsp; This may be a bit confusing as our generic Grid class isn't explicit in it's definition and there is a Grid present behind the map by default.&amp;nbsp; We have addressed the error you were receiving and that will be fixed in our upcoming v2.0 release.&amp;nbsp; But unfortunately, unless you were working with map grids, as shown in the code below, there is currently not a way to set the visibility to the background grid.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;//add a MGRS grid to the map&amp;nbsp; MapView.getGrid().setGridType(GridType.MGRS);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Visibility is set to true by default.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2012 22:30:36 GMT</pubDate>
    <dc:creator>DanO_Neill</dc:creator>
    <dc:date>2012-06-20T22:30:36Z</dc:date>
    <item>
      <title>MapView.getGrid().setVisibility(false) error</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-getgrid-setvisibility-false-error/m-p/565373#M3853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to trun off the grid line on mapview.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And my App crashed when i run the below code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void onCreate(Bundle savedInstanceState) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; super.onCreate(savedInstanceState);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setContentView(R.layout.main);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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; mMapView = new MapView(this);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; this.addContentView(mMapView, new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; mMapView.getGrid().setVisibility(false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got the error message is :java.lang.UnsatisfiedLinkError: nativeSetGridVisibility&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it's wrong way to do it? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank's for solution answer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 12:19:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-getgrid-setvisibility-false-error/m-p/565373#M3853</guid>
      <dc:creator>重溪陳</dc:creator>
      <dc:date>2012-06-20T12:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.getGrid().setVisibility(false) error</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-getgrid-setvisibility-false-error/m-p/565374#M3854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you trying to set the visibility of the grid behind the map?&amp;nbsp; That grid is the map background.&amp;nbsp; The Grid returned from the MapView.getGrid() method is a Grid on the map itself not behind.&amp;nbsp; Map Grids display index and geographic reference grids on a map, e.g. a degrees/minutes/seconds (DMS) grid label identifies the map grid using degrees, minutes, and seconds.&amp;nbsp; By default the MapView Grid is set to NONE.&amp;nbsp; The available grids can be viewed by the Enum Grid.GridType in the JavaDoc API.&amp;nbsp; Currently we only support NONE (default) and Military Grid Reference System (MGRS).&amp;nbsp; This may be a bit confusing as our generic Grid class isn't explicit in it's definition and there is a Grid present behind the map by default.&amp;nbsp; We have addressed the error you were receiving and that will be fixed in our upcoming v2.0 release.&amp;nbsp; But unfortunately, unless you were working with map grids, as shown in the code below, there is currently not a way to set the visibility to the background grid.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;//add a MGRS grid to the map&amp;nbsp; MapView.getGrid().setGridType(GridType.MGRS);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Visibility is set to true by default.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 22:30:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-getgrid-setvisibility-false-error/m-p/565374#M3854</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2012-06-20T22:30:36Z</dc:date>
    </item>
  </channel>
</rss>

