Hi Everyone
I am new to unity and working on ArcGIS Map SDK
As we know that in ArcGIS camera Gameobject we have ArcGIS Location which has longitude and latitude.
how we can access those into my game window.
Thank You,
Manoj
Solved! Go to Solution.
If you just want to display the current ArcGIS Camera position in terms of long and lat, you could check the ArcGIS Location Component that is attached to the ArcGIS Camera gameobject.
You could also get it displayed in the game window by passing those info to 2D UI texts. You should be able to get the lat and long values by requesting the position. (check ArcGISLocationComponent.cs in Assets/ArcGISMapsSDK/SDK/Components/). It will give you the X, Y, and Z values of the ArcGIS Point, depending on the spatial reference.
Hi, you can reference the ArcGISCamera API for accessing those.
Can you explain it little bit more.?
If you just want to display the current ArcGIS Camera position in terms of long and lat, you could check the ArcGIS Location Component that is attached to the ArcGIS Camera gameobject.
You could also get it displayed in the game window by passing those info to 2D UI texts. You should be able to get the lat and long values by requesting the position. (check ArcGISLocationComponent.cs in Assets/ArcGISMapsSDK/SDK/Components/). It will give you the X, Y, and Z values of the ArcGIS Point, depending on the spatial reference.
I got it, Thank you
But the ArcGIS Location is the location of camera. Is there any way to get the location of cursor where we point mouse pointer in the map