Ejemplo n.º 1
0
        /// <summary>
        /// Converts a pixel to its corresponding lat,long on the mapviewer.
        /// </summary>
        /// <param name="pixel"></param>
        /// <returns></returns>
        public VELatLong PixelToLatLong(VEPixel pixel)
        {
            var result  = WebBrowser.InvokeScript(this.GetType().Name + "PixelToLatLong", pixel.X, pixel.Y);
            var results = result.ToString().Split(',');

            return(new VELatLong(Convert.ToDouble(results[0]), Convert.ToDouble(results[1])));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Converts a pixel to its corresponding lat,long on the mapviewer.
 /// </summary>
 /// <param name="pixel"></param>
 /// <returns></returns>
 public VELatLong PixelToLatLong(VEPixel pixel)
 {
     var result = WebBrowser.InvokeScript(this.GetType().Name + "PixelToLatLong", pixel.X, pixel.Y);
     var results = result.ToString().Split(',');
     return new VELatLong(Convert.ToDouble(results[0]), Convert.ToDouble(results[1]));
 }