// constructors
 /// <summary>
 /// Initializes a new instance of the <see cref="GeoNearPoint.Legacy"/> class.
 /// </summary>
 /// <param name="value">The value.</param>
 public Legacy(XYPoint value)
 {
     _value = value;
 }
Exemple #2
0
 /// <summary>
 ///     坐标获得方法
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmdGeoJson_Click(object sender, EventArgs e)
 {
     var t = GetGeo();
     if (t != null)
     {
         point = new XYPoint(t[0].AsDouble, t[1].AsDouble);
         lblPoint.Text = "[" + point.X.ToString() + "," + point.Y.ToString() + "]";
     }
 }