상속: LatLng
 private wptType ToWptType(LatLngZ latLngZ)
 {
     return new wptType
     {
         lat = (decimal)latLngZ.lat,
         lon = (decimal)latLngZ.lng,
         ele = (decimal)latLngZ.z,
         eleSpecified = true
     };
 }
예제 #2
0
 private PointF ConvertLatLngZToPoint(LatLngZ latLng, BackgroundImage backgroundImage)
 {
     var x = (float)((GetXTile(latLng.lng, backgroundImage.N) - backgroundImage.TopLeft.X) * TARGET_TILE_SIZE_X / backgroundImage.Tiles.X);
     var y = (float)((GetYTile(latLng.lat, backgroundImage.N) - backgroundImage.TopLeft.Y) * TARGET_TILE_SIZE_Y / backgroundImage.Tiles.Y);
     return new PointF(x, y);
 }