<?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: Change map spatial reference, map not showing in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/change-map-spatial-reference-map-not-showing/m-p/1262213#M5990</link>
    <description>&lt;P&gt;The edited geometry from "SketchEditor.getGeometry()" has the same spatial reference as the map used in the MapView. To set your map to&amp;nbsp;&lt;SPAN&gt;WGS84:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="kotlin"&gt;ArcGISMap map = new ArcGISMap(SpatialReferences.getWgs84());
map.setBasemap(new Basemap(BasemapStyle.ARCGIS_DARK_GRAY));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To convert the spatial reference of geometry to match the spatial reference of the MapView,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="kotlin"&gt;Geometry projectedGeometry = GeometryEngine.project(geometry, mapView.getSpatialReference());&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out the &lt;A href="https://developers.arcgis.com/android/java/sample-code/sketch-editor/" target="_blank"&gt;Sketch editor&lt;/A&gt;,&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/java/sample-code/set-map-spatial-reference/" target="_blank"&gt;Set map spatial reference&lt;/A&gt;, and &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#project(com.esri.arcgisruntime.geometry.Geometry,com.esri.arcgisruntime.geometry.SpatialReference)" target="_blank" rel="noopener"&gt;GeometryEngine.Project&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 23:31:36 GMT</pubDate>
    <dc:creator>Shubham_Sharma</dc:creator>
    <dc:date>2023-02-27T23:31:36Z</dc:date>
    <item>
      <title>Change map spatial reference, map not showing</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/change-map-spatial-reference-map-not-showing/m-p/1259524#M5979</link>
      <description>&lt;P&gt;Hi, I use ArcGIS Runtime SDK 100 for android. I create polygon objects on the map and log the geometry points, the points are correct. But I started sketcher editor and edited the geometry. The geometry coordinates are UTM coordinates and not correct coordinates. I use SpatialReference.getWGS84 for spatial reference and coordinates set lat, long. I tried setting Spatial reference for the map, but the maps not working spatial reference WGS84. Please help me. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 20:12:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/change-map-spatial-reference-map-not-showing/m-p/1259524#M5979</guid>
      <dc:creator>novruzjaf</dc:creator>
      <dc:date>2023-02-17T20:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change map spatial reference, map not showing</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/change-map-spatial-reference-map-not-showing/m-p/1262213#M5990</link>
      <description>&lt;P&gt;The edited geometry from "SketchEditor.getGeometry()" has the same spatial reference as the map used in the MapView. To set your map to&amp;nbsp;&lt;SPAN&gt;WGS84:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="kotlin"&gt;ArcGISMap map = new ArcGISMap(SpatialReferences.getWgs84());
map.setBasemap(new Basemap(BasemapStyle.ARCGIS_DARK_GRAY));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To convert the spatial reference of geometry to match the spatial reference of the MapView,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="kotlin"&gt;Geometry projectedGeometry = GeometryEngine.project(geometry, mapView.getSpatialReference());&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out the &lt;A href="https://developers.arcgis.com/android/java/sample-code/sketch-editor/" target="_blank"&gt;Sketch editor&lt;/A&gt;,&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/java/sample-code/set-map-spatial-reference/" target="_blank"&gt;Set map spatial reference&lt;/A&gt;, and &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#project(com.esri.arcgisruntime.geometry.Geometry,com.esri.arcgisruntime.geometry.SpatialReference)" target="_blank" rel="noopener"&gt;GeometryEngine.Project&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 23:31:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/change-map-spatial-reference-map-not-showing/m-p/1262213#M5990</guid>
      <dc:creator>Shubham_Sharma</dc:creator>
      <dc:date>2023-02-27T23:31:36Z</dc:date>
    </item>
  </channel>
</rss>

