<?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: MMPK with WGS84 spatial projection is not lining up with GPS coordinates in Swift Maps SDK Questions</title>
    <link>https://community.esri.com/t5/swift-maps-sdk-questions/mmpk-with-wgs84-spatial-projection-is-not-lining/m-p/1351077#M165</link>
    <description>&lt;P&gt;How are you creating the points that you're using for the graphics being added to the graphics overlay? Could you share a code snippet? You should ensure that the points are created with a spatial reference (unless you're using &lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/point/init(latitude:longitude:)" target="_self"&gt;this constructor&lt;/A&gt;, which initializes a point with &lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/spatialreference/wgs84" target="_self"&gt;wgs84&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;The Map will have a spatial reference derived from the layers that are present when the map is loaded/first displayed. Typically that's the spatial reference of the basemap. Based off that spatial reference, the SDK will project geometries as needed, but those geometries will also need spatial references.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2023 20:38:40 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2023-11-17T20:38:40Z</dc:date>
    <item>
      <title>MMPK with WGS84 spatial projection is not lining up with GPS coordinates</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/mmpk-with-wgs84-spatial-projection-is-not-lining/m-p/1351037#M163</link>
      <description>&lt;P&gt;I have a really simple test.&amp;nbsp; I exported an area around my office as a MMPK file using ArcGIS Pro. I've tried a few different basemap layers, they all work the same.&amp;nbsp; The MMPK loads and is displayed in my MapView swift test project, no problem.&amp;nbsp; I am reading my current GPS coordinates and plotting the points to the GraphicsOverlay assigned to the MapView, but the points end up miles away from MMPK area.&amp;nbsp; If I use Map( basemapStyle: .arcGISTopographic ), instead of loading the MMPK, then the GPS points are displaying on the map where they should.&lt;/P&gt;&lt;P&gt;I'm guessing there's some kind of coordinate system issue between the MMPK and the GPS coordinate space (wgs84), but everything looks like it's in the same coordinate space.&amp;nbsp; Any ideas what's going wrong or how best to debug it?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 19:43:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/mmpk-with-wgs84-spatial-projection-is-not-lining/m-p/1351037#M163</guid>
      <dc:creator>dmc76</dc:creator>
      <dc:date>2023-11-17T19:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: MMPK with WGS84 spatial projection is not lining up with GPS coordinates</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/mmpk-with-wgs84-spatial-projection-is-not-lining/m-p/1351038#M164</link>
      <description>&lt;P&gt;I forgot to add that I have confirmed that the basemap layers I'm working with are all using wgs84 spatial projection.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 19:45:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/mmpk-with-wgs84-spatial-projection-is-not-lining/m-p/1351038#M164</guid>
      <dc:creator>dmc76</dc:creator>
      <dc:date>2023-11-17T19:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: MMPK with WGS84 spatial projection is not lining up with GPS coordinates</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/mmpk-with-wgs84-spatial-projection-is-not-lining/m-p/1351077#M165</link>
      <description>&lt;P&gt;How are you creating the points that you're using for the graphics being added to the graphics overlay? Could you share a code snippet? You should ensure that the points are created with a spatial reference (unless you're using &lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/point/init(latitude:longitude:)" target="_self"&gt;this constructor&lt;/A&gt;, which initializes a point with &lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/spatialreference/wgs84" target="_self"&gt;wgs84&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;The Map will have a spatial reference derived from the layers that are present when the map is loaded/first displayed. Typically that's the spatial reference of the basemap. Based off that spatial reference, the SDK will project geometries as needed, but those geometries will also need spatial references.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 20:38:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/mmpk-with-wgs84-spatial-projection-is-not-lining/m-p/1351077#M165</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2023-11-17T20:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: MMPK with WGS84 spatial projection is not lining up with GPS coordinates</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/mmpk-with-wgs84-spatial-projection-is-not-lining/m-p/1351770#M168</link>
      <description>&lt;P&gt;Thanks for your reply.&amp;nbsp; I appreciate the info about the spatial references. I managed to get the GPS points to show correctly on my map, though I can't say exactly what changed.&amp;nbsp; I'll just chalk it up to me messing something up as I was cobbling together some test code.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 00:21:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/mmpk-with-wgs84-spatial-projection-is-not-lining/m-p/1351770#M168</guid>
      <dc:creator>dmc76</dc:creator>
      <dc:date>2023-11-21T00:21:55Z</dc:date>
    </item>
  </channel>
</rss>

