Esempio n. 1
0
        public void TestObtenerUbicacion()
        {
            UbicacionServiceClient proxy = new UbicacionServiceClient();

            Ubicacion ubi = new Ubicacion();

            ubi = proxy.listaUbicacion("em124");

            Assert.AreEqual(ubi.latitud, -12.1017361);
            Assert.AreEqual(ubi.longitud, -77.0001988);
        }
Esempio n. 2
0
        protected void btnBUscar_Click(object sender, EventArgs e)
        {
            UbicacionServiceClient proxy = new UbicacionServiceClient();
            Ubicacion ubi = new Ubicacion();

            try
            {
                GMap1.reset();
                ubi = proxy.listaUbicacion(TextBox1.Text);
                GLatLng milocacion = new GLatLng(ubi.latitud, ubi.longitud);
                GMap1.setCenter(milocacion, 14);

                XPinLetter Xpin = new XPinLetter(PinShapes.pin_star, "H", Color.Blue, Color.White, Color.Chocolate);
                GMap1.Add(new GMarker(milocacion, new GMarkerOptions(new GIcon(Xpin.ToString(), Xpin.Shadow()))));
            }
            catch (Exception ex)
            {
                Label2.Text = ex.Message;
            }
        }
Esempio n. 3
0
        protected void btnBUscar_Click(object sender, EventArgs e)
        {
            UbicacionServiceClient proxy = new UbicacionServiceClient();
            Ubicacion ubi = new Ubicacion();



            try
            {
                GMap1.reset();
                ubi = proxy.listaUbicacion(TextBox1.Text);
                GLatLng milocacion = new GLatLng(ubi.latitud, ubi.longitud);
                GMap1.setCenter(milocacion, 14);

                XPinLetter Xpin = new XPinLetter(PinShapes.pin_star, "H", Color.Blue, Color.White, Color.Chocolate);
                GMap1.Add(new GMarker(milocacion, new GMarkerOptions(new GIcon(Xpin.ToString(), Xpin.Shadow()))));
            }
            catch (Exception ex)
            {
                Label2.Text = ex.Message;
            }
        }
Esempio n. 4
0
        public void TestObtenerUbicacion()
        {
            UbicacionServiceClient proxy = new UbicacionServiceClient();

             Ubicacion ubi = new Ubicacion();

             ubi = proxy.listaUbicacion("em124");

             Assert.AreEqual(ubi.latitud, -12.1017361);
             Assert.AreEqual(ubi.longitud, -77.0001988);
        }