When using the ArcGIS Location Component I can see the latitude and longitude in the inspector window. However, how do I access these values from script? I'd like to know the current position of the player.
Solved! Go to Solution.
GO.GetComponent<ArcGISLocationComponent>().Position.X or Y
GO.GetComponent<ArcGISLocationComponent>().Position.X or Y
Why did I report an error "The type or namespace name 'ArcGISLocationComponent' could not be found"😭
Add
using Esri.ArcGISMapsSDK.Components;