Click or drag to resize

IMapLatLontoXY Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Convert from a LatLon to a pixel X,Y location on the map.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
void LatLontoXY(
	out int x,
	out int y,
	LatLon loc
)

Parameters

x
Type: SystemInt32
x co-ordinate.
y
Type: SystemInt32
y co-ordinate.
loc
Type: Telogis.GeoBaseLatLon
LatLon location.
Examples
C#
LatLon pos = new LatLon(33.573332, -117.726863);
int x1, y1;
mapMain.LatLontoXY(out x1, out y1, pos);
Console.WriteLine(" X is {0}, Y is {1} ", x1, y1);
// Prints "X is 6000, Y is 2705"
See Also