Пример #1
0
 private void googleMap1_MapClick(object sender, Web.Ext.GoogleMaps.MapMouseEventArgs e)
 {
     if (e.Marker == null)
     {
         AlertBox.Show("You clicked location: " + e.Location.ToString());
     }
     else
     {
         AlertBox.Show("You clicked marker: " + e.Marker + "  at location: " + e.Location.ToString());
     }
 }
Пример #2
0
 private void googleMap1_MapClick(object sender, Web.Ext.GoogleMaps.MapMouseEventArgs e)
 {
     if (e.Marker == null)
     {
         AlertBox.Show("You clicked location: " + e.Location.ToString(),
                       alignment: System.Drawing.ContentAlignment.BottomRight);
     }
     else
     {
         AlertBox.Show("You clicked marker: " + e.Marker + "  at location: " + e.Location.ToString(),
                       alignment: System.Drawing.ContentAlignment.TopRight);
     }
 }