Stoptou31 / winforms-geplugin-control-library

Automatically exported from code.google.com/p/winforms-geplugin-control-library
GNU General Public License v3.0
0 stars 0 forks source link

Want to get the LAT/LON position of the mouse when it moves #114

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I'm trying to get the LAT/LON position of the mouse when it moves. But I don't 
know how to do?   

Original issue reported on code.google.com by jinjinta...@gmail.com on 2 Nov 2013 at 6:08

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
add this "Me.GeWebBrowser1.AddEventListener(ge.getGlobe(), EventId.Click)" to
  Private Sub geWebBrowser1_PluginReady(ByVal sender As Object, ByVal e As GEEventArgs)
than add this code

    Private Sub GeWebBrowser1_KmlEvent(ByVal sender As System.Object, ByVal e As FC.GEPluginCtrls.GEEventArgs) Handles GeWebBrowser1.KmlEvent
        Debug.WriteLine(e.ApiObject.getClientX())
        Debug.WriteLine(e.ApiObject.getClientY())
        Debug.WriteLine(e.ApiObject.getScreenX())
        Debug.WriteLine(e.ApiObject.getScreenY())
        Debug.WriteLine(e.ApiObject.getLatitude())
        Debug.WriteLine(e.ApiObject.getLongitude())
        Debug.WriteLine(e.ApiObject.getAltitude())
        Debug.WriteLine(e.ApiObject.getDidHitGlobe())
        Debug.WriteLine(e.ApiObject.getTimeStamp())
        GeToolStrip1.Items("ToolStripTextBox1").Text = String.Format("Lat({0:00.000000}),Lon=({1:00.0000000}),Alt={2:0000.0}", e.ApiObject.getLatitude(), e.ApiObject.getLongitude(), e.ApiObject.getAltitude())
        'Debug.WriteLine("Latitude= {0} Latitude={1}", e.ApiObject.getLatitude(), e.ApiObject.getLongitude())
    End Sub

Original comment by amrzakar...@gmail.com on 20 Oct 2014 at 10:39