sagulnet / 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

Get map coordinates of a point from mouse click #117

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What should this feature enhancement do?
get coordinates of a point from mouse click

Are there any known workarounds that produce the similar results?
none I have found

Please provide any additional information below.
User click on map and an event is raised from wich I can get map coordinates or 
kml node or both.

Original issue reported on code.google.com by g7n...@gmail.com on 20 Mar 2014 at 7:19

GoogleCodeExporter commented 8 years ago
Use Event KmlEvent() to Get Mouse Click()
    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:000.00}", 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 9:53

GoogleCodeExporter commented 8 years ago
No further development now that the Earth API is depreciated. 

Original comment by fraser.c...@gmail.com on 17 Dec 2014 at 3:20