コード例 #1
0
        /// <summary>
        /// Navigates to target latitude and longitude using given duration.
        /// </summary>
        public void FlyToLocation(float latitude, float longitude, float duration, float destinationZoomLevel = 0)
        {
            Vector3 destination = Conversion.GetSpherePointFromLatLon(latitude, longitude);

            FlyToLocation(destination, duration, destinationZoomLevel, _navigationBounceIntensity);
        }
コード例 #2
0
		/// <summary>
		/// Returns the index of the nearest city to a location (lat/lon).
		/// </summary>
		public int GetCityIndex (float lat, float lon) {
			Vector3 spherePosition = Conversion.GetSpherePointFromLatLon(lat, lon);
			return GetCityIndex(spherePosition);
		}