Location
Represents latitude and longitude.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
[TypeConverter(typeof(LocationConverter))]
public struct Location
Constructors
Properties
Gets or sets a string indicating the geocode method that was used to match the location to the map.
public string CalculationMethod { get; set; }
Gets or sets the description of the location.
public string Description { get; set; }
Gets a value that represents an empty Location structure.
public static Location Empty { get; }
A Location structure with Latitude and Longitude values set to 0 is not empty. An empty Location structure has Latitude and Longitude values set to negative infinity. This is the only time a Location structure can have negative infinity values.
Gets a value that indicates whether this Location structure is empty.
public bool IsEmpty { get; }
A Location structure with Latitude and Longitude values set to 0 is not empty. An empty Location structure has Latitude and Longitude values set to negative infinity. This is the only time a Location structure can have negative infinity values.
Methods
Gets a hash code for this Location structure.
public override int GetHashCode()
A hash code for this Location structure.
Overrides:
GetPoint(RadMap)
Point
Gets location of the Location structure on the given RadMap control as Point relative to the size of the control.
public Point GetPoint(RadMap mapControl)
RadMap control.
Returns:Point
Point on the RadMap control.
Convert a logic point to a Pixel Point on the current screen at a particular zoom level.
public static Point LogicalToPixel(RadMap mapControl, Point logicalPoint)
The map control instance.
logicalPointPointThe logical Point.
Returns:Point
Pixel Point.
Converts a String representation of a Latitude-Longitude into the equivalent Location object.
public static Location Parse(string source, IFormatProvider provider = null)
The String representation of the Location object.
providerIFormatProviderThe IFormatProvider used to format the Latitude / Longitude doubles.
Returns:The equivalent Location structure.
Convert a pixel point to a Logical Point on the current screen.
public static Point PixelToLogical(RadMap mapControl, Point pixel)
The map control instance.
pixelPointPixel Point.
Returns:Point
The logical Point.
Creates a String representation of this Location object using KML format. KML uses sequence of the Latitude and Longitude. Longitude is first and the Latitude is second.
public string ToKmlString(IFormatProvider provider)
The culture-specific formatting information.
Returns:A String containing the Latitude and Longitude values of this Location object in KML format.
Creates a String representation of this Location object. By default it uses CultureInfo.CurrentCulture to store the Latitude / Longitude. To use Invariant or other Culture, use the override ToString(IFormatProvider).
public override string ToString()
A String containing the Latitude and Longitude values of this Location object.
Overrides:
Creates a String representation of this Location object.
public string ToString(IFormatProvider provider)
The culture-specific formatting information.
Returns:A String containing the Latitude and Longitude values of this Location object.
Creates a String representation of this Location object.
public string ToString(string format, IFormatProvider provider)
The string format for the Latitude and Longitute properties.
providerIFormatProviderThe culture-specific formatting information.
Returns:A String containing the Latitude and Longitude values of this Location object formatted with specified string format and IFormatProvider.
Creates a String representation of this Location object.
Operators
Converts this Location structure into a Point structure.
public static explicit operator Point(Location location)
The Location to convert.
Returns:Point
The result of converting.
Compares two Location structures for inequality.