Ejemplo n.º 1
0
 private void LatLngToPix_Click(object sender, RoutedEventArgs e)
 {
     try {
         Point pMeters = WebMercator.LatLonToMeters(Double.Parse(LatTxt.Text), Double.Parse(LngTxt.Text));
         Point pPixels = WebMercator.MetersToPixels(pMeters, int.Parse(ZoomTxt.Text));
         XPixTxt.Text = pPixels.X.ToString();
         YPixTxt.Text = pPixels.Y.ToString();
     }
     catch (Exception ex)
     {
     }
 }