protected void Page_Load(object sender, EventArgs e) { if (!Request.IsAuthenticated) { Response.Redirect("~/Login.aspx"); } if (string.IsNullOrWhiteSpace(Request.QueryString["latitude"]) && string.IsNullOrWhiteSpace(Request.QueryString["longitude"])) { lblError1.Font.Size = 18; lblError1.Text = "The selected vehicle has not arquired a GPS coordinate fix"; } else { string querylat = Request.QueryString["latitude"]; string querylongt = Request.QueryString["longitude"]; double value1 = double.Parse(querylat); double value2 = double.Parse(querylongt); Artem.Web.UI.Controls.GoogleMap GistMeEnforaMap = new GoogleMap(); GistMeEnforaMap.Visible = true; GistMeEnforaMap.Enabled = true; GistMeEnforaMap.Zoom = 10; GistMeEnforaMap.Height = 600; GistMeEnforaMap.Width = 800; GistMeEnforaMap.EnableGoogleBar = true; GistMeEnforaMap.Key = "My googlemap key goes in here"; GoogleMarker marker = new GoogleMarker(value1, value2); GistMeEnforaMap.Markers.Add(marker); GistMeEnforaMap.Latitude = marker.Latitude; GistMeEnforaMap.Longitude = marker.Longitude; GistMeEnforaMap.DefaultAddress = "Abuja, Nigeria"; GistMeEnforaMap.DefaultMapView = GoogleMapView.Hybrid; PanelEnforaMap.Controls.Add(GistMeEnforaMap); //GistMeEnforaMap.Markers.Add(new GoogleMarker(value1, value2)); //GistMeEnforaMap.Latitude = value1; //GistMeEnforaMap.Longitude = value2; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)