Ejemplo n.º 1
0
        public DropsMap()
        {
            InitializeComponent();
            myMap.Focus();
            //Set map to Aerial mode with labels
            myMap.Mode = new AerialMode(true);


            WebBrowserGoogleMap.Navigate("https://www.google.com/maps?q=Shahal+Jerusalem+");
        }
Ejemplo n.º 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string street = txt_street.Text;
            string city   = txt_city.Text;
            string state  = txt_state.Text;
            string zip    = txt_zip.Text;

            try
            {
                StringBuilder quarryAddress  = new StringBuilder();
                StringBuilder quarryAddress2 = new StringBuilder();
                StringBuilder quarryAddress3 = new StringBuilder();

                quarryAddress.Append("https://www.google.com/maps?q=");
                //quarryAddress2.Append(" https://www.google.com/maps/d/u/0/edit?hl=iw&hl=iw&mid=1Cbdx-P-iEr0iTcSYEH3sno3gUsG0WMA2&ll=31.805111156673668%2C34.964537153527544&z=11 ");
                //quarryAddress3.Append(" https://www.google.com/maps/d/u/0/edit?hl=iw&hl=iw&mid=1Cbdx-P-iEr0iTcSYEH3sno3gUsG0WMA2&ll=31.960262760614995%2C35.34942100000001&z=15 ");


                //street
                if (street != string.Empty)
                {
                    quarryAddress.Append(street + "," + "+");
                }
                //city
                if (city != string.Empty)
                {
                    quarryAddress.Append(city + "," + "+");
                }
                //state
                if (state != string.Empty)
                {
                    quarryAddress.Append(state + "," + "+");
                }
                //zip
                if (zip != string.Empty)
                {
                    quarryAddress.Append(zip + "," + "+");
                }
                WebBrowserGoogleMap.Navigate(quarryAddress.ToString());
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString(), "ERROR");
            }
        }
Ejemplo n.º 3
0
        private void serch_data_click(object sender, RoutedEventArgs e)
        {
            string street = txt_street.Text;
            string city   = txt_city.Text;
            string state  = txt_state.Text;
            string zip    = txt_zip.Text;

            try
            {
                StringBuilder quarryAddress = new StringBuilder();

                quarryAddress.Append("https://www.google.com/maps?q=");
                //street
                if (street != string.Empty)
                {
                    quarryAddress.Append(street + "," + "+");
                }
                //city
                if (city != string.Empty)
                {
                    quarryAddress.Append(city + "," + "+");
                }
                //state
                if (state != string.Empty)
                {
                    quarryAddress.Append(state + "," + "+");
                }
                //zip
                if (zip != string.Empty)
                {
                    quarryAddress.Append(zip + "," + "+");
                }
                WebBrowserGoogleMap.Navigate(quarryAddress.ToString());
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString(), "ERROR");
            }
        }
Ejemplo n.º 4
0
 public Map()
 {
     InitializeComponent();
     WebBrowserGoogleMap.Navigate("https://www.google.com/maps?q=Shahal+Jerusalem+");
 }