<?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 About map initialization in ArcGIS Maps SDK for Unity Questions</title>
    <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/about-map-initialization/m-p/1311428#M569</link>
    <description>&lt;P&gt;&lt;SPAN&gt;The following file is your sample code SampleAPIMapCreator, used to initialize the map, but the current problem is that the initialization speed is a little slow, almost need to run 3s or so, you can call the following two methods to convert latitude and longitude。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;public static Vector3 GetUnityPosFromLatlon(ArcGISPoint latLon)&lt;BR /&gt;{&lt;BR /&gt;var cartesianPosition = arcGISMapComponent.View.GeographicToWorld(latLon);&lt;/P&gt;&lt;P&gt;return hPRoot.TransformPoint(cartesianPosition).ToVector3();&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;public static ArcGISPoint GetLatLonFromUnityPos(Vector3 vec)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;var worldPosition = hPRoot.InverseTransformPoint(vec.ToDouble3());&lt;/P&gt;&lt;P&gt;return arcGISMapComponent.View.WorldToGeographic(worldPosition);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but the old version of Arcgis, the initialization speed is particularly fast。The older version of the initialization script was KDArcGISManager。look forward to your answer&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 11:07:45 GMT</pubDate>
    <dc:creator>jianghan8098</dc:creator>
    <dc:date>2023-07-25T11:07:45Z</dc:date>
    <item>
      <title>About map initialization</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/about-map-initialization/m-p/1311428#M569</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The following file is your sample code SampleAPIMapCreator, used to initialize the map, but the current problem is that the initialization speed is a little slow, almost need to run 3s or so, you can call the following two methods to convert latitude and longitude。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;public static Vector3 GetUnityPosFromLatlon(ArcGISPoint latLon)&lt;BR /&gt;{&lt;BR /&gt;var cartesianPosition = arcGISMapComponent.View.GeographicToWorld(latLon);&lt;/P&gt;&lt;P&gt;return hPRoot.TransformPoint(cartesianPosition).ToVector3();&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;public static ArcGISPoint GetLatLonFromUnityPos(Vector3 vec)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;var worldPosition = hPRoot.InverseTransformPoint(vec.ToDouble3());&lt;/P&gt;&lt;P&gt;return arcGISMapComponent.View.WorldToGeographic(worldPosition);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but the old version of Arcgis, the initialization speed is particularly fast。The older version of the initialization script was KDArcGISManager。look forward to your answer&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 11:07:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/about-map-initialization/m-p/1311428#M569</guid>
      <dc:creator>jianghan8098</dc:creator>
      <dc:date>2023-07-25T11:07:45Z</dc:date>
    </item>
  </channel>
</rss>

