Ejemplo n.º 1
0
 public Vector3 GetCurrentMarkerMercator(double z, double x)
 {
     if (geoMarker == null)
     {
         geoMarker = FindObjectOfType <GeographicMarker>();
     }
     return(geoMarker.GetCurrentMercator(z, x));
 }
Ejemplo n.º 2
0
    /// <summary>
    /// A method that returns a position from a coordinate relative to the GeographicMarker.
    /// </summary>
    /// /// <param name="latitude">
    /// The latitude of the coordinate.
    /// </param>
    /// <param name="longitude">
    /// The longitude of the coordinate.
    /// </param>
    /// /// <param name="elevation">
    /// The elevation of the coordinate.
    /// </param>
    /// <returns>
    /// The position.
    /// </returns>
    public Vector3 GetPosition(double latitude, double longitude, double elevation)
    {
        if (geoMarker == null)
        {
            geoMarker = FindObjectOfType <GeographicMarker>();
        }
        GeographicCoord geoCoord = new GeographicCoord(GeographicCoord.Mode.LatLongDecimalDegrees);

        geoCoord.text = latitude + ", " + longitude + ", " + elevation;
        return(geoMarker.Translate(geoCoord.ToGeoPoint()));
    }
Ejemplo n.º 3
0
 void Start()
 {
     geoMarker  = FindObjectOfType <GeographicMarker>();
     objectName = gameObject.name;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// A message called when the script starts.
 /// </summary>
 void Start()
 {
     geoMarker = FindObjectOfType <GeographicMarker>();
 }