Topic: How do I access the coordinates of my markers?
I have placed several markers using the keyboard shortcuts but I want to extract the GPS cordinates of each marker in script. How can I do this?
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → How do I access the coordinates of my markers?
I have placed several markers using the keyboard shortcuts but I want to extract the GPS cordinates of each marker in script. How can I do this?
Hello.
2D markers are stored in OnlineMaps.markers.
http://infinity-code.com/doxygen/online … d037143575
To get or set the location use OnlineMapsMarkerBase.position.
http://infinity-code.com/doxygen/online … 0a8c559dcd
Example:
foreach (OnlineMapsMarker marker in OnlineMaps.instance.markers)
{
Debug.Log(marker.position.ToString("F4"));
}Infinity Code Forum → Online Maps Help → How do I access the coordinates of my markers?
Powered by PunBB, supported by Informer Technologies, Inc.