protected string GMap1_DragEnd(object s, GAjaxServerEventArgs e) { GMarker marker = new GMarker(e.point); GInfoWindow window = new GInfoWindow(marker, "DragEnd - " + DateTime.Now.ToString(), false); return(window.ToString(e.map)); }
protected string GMap1_Click(object s, GAjaxServerEventArgs e) { GMap1.GZoom = 1; GInfoWindow window = new GInfoWindow(e.point, "Clicked"); GMap1.Add(window); return string.Empty; }
protected string GMap1_MarkerClick(object s, GAjaxServerEventArgs e) { GLatLng latLng = new GLatLng(40, 10); GMap1.GCenter = latLng; GMap1.resetInfoWindows(); GMap1.GZoom = 6; return string.Empty; }
protected string MapaPrueba_MarkerClick(object s, GAjaxServerEventArgs e) { //Almacena la longitud y la latitud DbLatitud = e.point.lat; DbLongitud = e.point.lng; //Almacena los valores para usar en el metodo de guardar Session["DbLatitud"] = DbLatitud; Session["DbLongitud"] = DbLongitud; return(""); }
protected string GMap1_Click(object s, GAjaxServerEventArgs e) { GMap1.GZoom = 1; GInfoWindow window = new GInfoWindow(e.point, "Clicked"); GMap1.Add(window); return(string.Empty); }
protected string GMap1_MarkerClick(object s, GAjaxServerEventArgs e) { GLatLng latLng = new GLatLng(40, 10); GMap1.GCenter = latLng; GMap1.resetInfoWindows(); GMap1.GZoom = 6; return(string.Empty); }
protected string GMap1_Click(object s, GAjaxServerEventArgs e) { GMarker marker = new GMarker(e.point); GInfoWindow window = new GInfoWindow(marker, string.Format(@"<b>GLatLngBounds</b><br />SW = {0}<br/>NE = {1}", e.bounds.getSouthWest().ToString(), e.bounds.getNorthEast().ToString()) , true); return window.ToString(e.map); }
protected string GMap1_Click(object s, GAjaxServerEventArgs e) { GMarker marker = new GMarker(e.point); GInfoWindow window = new GInfoWindow(marker, string.Format(@"<b>GLatLngBounds</b><br />SW = {0}<br/>NE = {1}", e.bounds.getSouthWest().ToString(), e.bounds.getNorthEast().ToString()) , true); return(window.ToString(e.map)); }
protected string GMap1_Click(object s, GAjaxServerEventArgs e) { string respuesta = string.Empty; Punto pun = new Punto(); pun.longitud = e.point.lng.ToString(); pun.latitud = e.point.lat.ToString(); listaPunto.Add(pun); Session["listaPunto"] = listaPunto; if (DropDownList1.SelectedValue == "Punto") { GIcon icon = new GIcon(); icon.image = "https://www.google.es/maps/vt/icon/name=icons/spotlight/spotlight-poi-medium.png&scale=2?scale=1"; icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; GMarkerOptions mOpts = new GMarkerOptions(); mOpts.clickable = true; mOpts.icon = icon; GMarker marker = new GMarker(e.point, mOpts); GInfoWindow window = new GInfoWindow(marker, string.Format( @"<b>Longitud y Latitud del Punto</b><br />SW = {0}<br/>NE = {1} <br /> LatLogn{2}", e.bounds.getSouthWest(), e.bounds.getNorthEast(), e.point ), true); txtNombre.Focus(); txtLatitud.Text = e.point.lat.ToString(); txtLongitud.Text = e.point.lng.ToString(); txtNombre.Text = string.Empty; btnInsertar.Enabled = true; btnLimpiar.Enabled = true; respuesta = window.ToString(e.map); } if (DropDownList1.SelectedValue == "Linea" && listaPunto.Count > 1) { GMarker marker = new GMarker(e.point); GInfoWindow window = new GInfoWindow(marker, string.Format( @"<b>Longitud y Latitud del Punto</b><br />SW = {0}<br/>NE = {1} <br /> LatLogn{2}", e.bounds.getSouthWest(), e.bounds.getNorthEast(), e.point ), true); respuesta = window.ToString(e.map); } return(respuesta); }
protected string OnGoogleMapClick(object s, GAjaxServerEventArgs e) { GMarker marker = new GMarker(e.point); GInfoWindow window = new GInfoWindow(marker, string.Format( @"<b>GLatLngBounds</b><br/>NE = {0}", e.bounds.getNorthEast()), true); this.coordinates = e.bounds.getNorthEast().ToString().Split(','); return(window.ToString(e.map)); }
protected string OnGoogleMapClick(object s, GAjaxServerEventArgs e) { GMarker marker = new GMarker(e.point); GInfoWindow window = new GInfoWindow(marker, string.Format( @"<b>GLatLngBounds</b><br/>NE = {0}", e.bounds.getNorthEast()), true); this.coordinates = e.bounds.getNorthEast().ToString().Split(','); return window.ToString(e.map); }
protected string GMap1_MarkerClick(object s, GAjaxServerEventArgs e) { string markerID = GMap1.getGMapElementById(e.who); string js = string.Format(@" if ({0}.getVisible()) {0}.setVisible(false); else {0}.setVisible(true); ", markerID); js += string.Format("alert('point: ' + {0}.getPosition());", markerID); return(js); }
protected string GMap1_MarkerClick(object s, GAjaxServerEventArgs e) { string markerID = GMap1.getGMapElementById(e.who); string js = string.Format(@" if ({0}.getVisible()) {0}.setVisible(false); else {0}.setVisible(true); ", markerID); js += string.Format("alert('point: ' + {0}.getPosition());", markerID); return js; }
protected string GMap1_Click(object s, GAjaxServerEventArgs e) { GMap1.resetMarkers(); //Response.Write("Sus Coordenadas son: \r\n Latitud: " + e.point.lat + "\r\n" + "Logitud: " + e.point.lng); txtLongitud.Text = (string)e.point.lng.ToString(); txtLatitud.Text = (string)e.point.lat.ToString(); var glatlng = new Subgurim.Controles.GLatLng(double.Parse(txtLatitud.Text), double.Parse(txtLongitud.Text)); GMap1.setCenter(glatlng, 16, Subgurim.Controles.GMapType.GTypes.Normal); var oMarker = new Subgurim.Controles.GMarker(glatlng); GMap1.Add(oMarker); return(default(string)); }
protected string GMap1_Click(object s, GAjaxServerEventArgs e) { inverseGeocodingManager igeoManager = new inverseGeocodingManager(e.point, "es"); inverseGeocoding iGeos = igeoManager.inverseGeoCodeRequest(); geoName geo; if (iGeos.geonames.Count > 0) { geo = iGeos.geonames[0]; StringBuilder sb = new StringBuilder(); sb.Append("<div align=\"left\">"); sb.Append("<b>Nearest Place</b>"); sb.Append("<br />"); sb.AppendFormat("Place name: <i>{0}</i> ", geo.name); sb.Append("<br />"); sb.AppendFormat("Point: <i>{0}</i>", geo.nearestPlacePoint.ToString()); sb.Append("<br />"); sb.AppendFormat("Elevation: <i>{0}</i>", geo.nearestPlaceElevation > -9000 ? geo.nearestPlaceElevation.ToString() : "No info"); sb.Append("<br />"); sb.AppendFormat("Country Name (Code): <i>{0} ({1})</i>", geo.countryName, geo.countryCode); sb.Append("<br />"); sb.AppendFormat("Click point - Nearest Place distance (Km): <i>{0}</i>", Math.Round(geo.distance, 3)); sb.Append("</div>"); sb.Append("<br />"); sb.Append("<div align=\"left\">"); sb.Append("<b>Click point</b>"); sb.Append("<br />"); sb.AppendFormat("Point: <i>{0}</i>", geo.initialPoint.ToString()); sb.Append("<br />"); sb.AppendFormat("Elevation: <i>{0}</i>", geo.initialPointElevation > -9000 ? geo.initialPointElevation.ToString() : "No info"); sb.Append("<br />"); sb.Append("</div>"); GInfoWindow window = new GInfoWindow(e.point, sb.ToString(), true); return(window.ToString(e.map)); } else { return(string.Empty); } }
protected string GMap1_MarkerClick(object s, GAjaxServerEventArgs e) { dt = BD.GetTableOne(e.point.lat.ToString(), e.point.lng.ToString()); if (dt.Rows.Count > 0) { btnEditar.Enabled = true; btnEliminar.Enabled = true; btnLimpiar.Enabled = true; foreach (DataRow row in dt.Rows) { txtLatitud.Text = e.point.lat.ToString(); txtLongitud.Text = e.point.lng.ToString(); txtNombre.Text = row["name_branch"].ToString(); txtdireccion.Text = row["addres_branch"].ToString(); txtaforo.Text = row["aforo"].ToString(); } } return(string.Empty); //return string.Format("alert('MarkerClick: {0} - {2} - {1}'); ", e.point, DateTime.Now, e.map); }
protected string GMap1_Click(object s, GAjaxServerEventArgs e) { inverseGeocodingManager igeoManager = new inverseGeocodingManager(e.point, "es"); inverseGeocoding iGeos = igeoManager.inverseGeoCodeRequest(); geoName geo; if (iGeos.geonames.Count > 0) { geo = iGeos.geonames[0]; StringBuilder sb = new StringBuilder(); sb.Append("<div align=\"left\">"); sb.Append("<b>Nearest Place</b>"); sb.Append("<br />"); sb.AppendFormat("Place name: <i>{0}</i> ", geo.name); sb.Append("<br />"); sb.AppendFormat("Point: <i>{0}</i>", geo.nearestPlacePoint.ToString()); sb.Append("<br />"); sb.AppendFormat("Elevation: <i>{0}</i>", geo.nearestPlaceElevation > -9000 ? geo.nearestPlaceElevation.ToString() : "No info"); sb.Append("<br />"); sb.AppendFormat("Country Name (Code): <i>{0} ({1})</i>", geo.countryName, geo.countryCode); sb.Append("<br />"); sb.AppendFormat("Click point - Nearest Place distance (Km): <i>{0}</i>", Math.Round(geo.distance, 3)); sb.Append("</div>"); sb.Append("<br />"); sb.Append("<div align=\"left\">"); sb.Append("<b>Click point</b>"); sb.Append("<br />"); sb.AppendFormat("Point: <i>{0}</i>", geo.initialPoint.ToString()); sb.Append("<br />"); sb.AppendFormat("Elevation: <i>{0}</i>", geo.initialPointElevation > -9000 ? geo.initialPointElevation.ToString() : "No info"); sb.Append("<br />"); sb.Append("</div>"); GInfoWindow window = new GInfoWindow(e.point, sb.ToString(), true); return window.ToString(e.map); } else return string.Empty; }
protected string GMap_Click(object s, GAjaxServerEventArgs e) { e.store[i.ToString()] = DateTime.Now.ToString(); return string.Format("alert('{0} Store items: {1}')", e.map, e.store.Count); }
protected string GMap_Click(object s, GAjaxServerEventArgs e) { e.store[i.ToString()] = DateTime.Now.ToString(); return(string.Format("alert('{0} Store items: {1}')", e.map, e.store.Count)); }
protected string GMap1_Click(object s, GAjaxServerEventArgs e) { return(new GMarker(e.point).ToString(e.map)); }
protected string GMap1_Click(object s, GAjaxServerEventArgs e) { return new GMarker(e.point).ToString(e.map); }
protected string GMap2_Click(object s, GAjaxServerEventArgs e) { return default(string); }
protected string GMap1_MarkerClick(object s, GAjaxServerEventArgs e) { return(string.Format("alert('MarkerClick: {0} - {1}')", e.point.ToString(), DateTime.Now)); }
protected string locationGMap_Click(object s, GAjaxServerEventArgs e) { return(string.Format("{0}.panTo({1})", e.who, e.point.ToString("new"))); }
protected string locationGMap_MarkerClick(object s, GAjaxServerEventArgs e) { string addr; return(GetInverseGeoCode(e.point, out addr)); }
/// <summary> /// In order to show marker lat lon /// </summary> /// <param name="s"></param> /// <param name="e"></param> /// <returns></returns> protected string MarkerClick(object s, GAjaxServerEventArgs e) { return string.Format("alert('{0}')", e.point); }
protected string GMap1_MarkerClick(object s, GAjaxServerEventArgs e) { //string markerID = GMap1.getGMapElementById(e.who); string markerID = e.who; string js = string.Format("GmarkerClick('{0}')", markerID); return js; }
protected string GMap1_Click(object s, GAjaxServerEventArgs e) { return(null); }
protected string GMAP_Target_OnMarkerClick(object s, GAjaxServerEventArgs e) { m_latitude = e.point.lat; m_longtitude = e.point.lng; return string.Format("alert('MarkerClick: {0} - {2} - {1}')", e.point, DateTime.Now, e.map); }
protected string GMap1_DragStart(object s, GAjaxServerEventArgs e) { GMarker marker = new GMarker(e.point); GInfoWindow window = new GInfoWindow(marker, "DragStart - " + DateTime.Now.ToString(), false); return window.ToString(e.map); }
protected string GMap1_MarkerClick(object s, GAjaxServerEventArgs e) { return string.Format("alert('MarkerClick: {0} - {1}')", e.point.ToString(), DateTime.Now); }
protected string GMap1_MoveEnd(object s, GAjaxServerEventArgs e) { return("document.getElementById('messages2').innerHTML= 'MoveEnd at " + e.point.ToString() + " - " + DateTime.Now.ToString() + "';"); }
protected string GMap1_MoveStart(object s, GAjaxServerEventArgs e) { return "document.getElementById('messages1').innerHTML= 'MoveStart at " + e.point.ToString() + " - " + DateTime.Now.ToString() + "';"; }
protected string GMap1_Click(object s, GAjaxServerEventArgs e) { return null; }
public void Me(GAjaxServerEventArgs e) { }