บทความ

กำลังแสดงโพสต์ที่มีป้ายกำกับ pin map

Simple markers Google Map API with C# .Net

รูปภาพ
  Simple markers Google Map API with C#  ปักหมุดลงใน Google Map โดยนำข้อมูลจาก C#  สามารถเปลี่ยนหมุดได้ตามที่เรากำหนดเลย C# CodeFile map.aspx.cs string sql = "SELECT  Latitude, Longitude,markericons FROM table"; SqlCommand cmd = new SqlCommand(sql, con); SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(ds, "Result"); //ข้อมูลจาก Sql server List<String> oGeocodeList= new List<String>(); List<String> MarkerIcon = new List<String>();  for (int i = 0; i < ds.Tables["Result"].Rows.Count; i++){                    oGeocodeList.Add(" '" + ds.Tables["Result"].Rows[i]["Latitude"].ToString() + "," + ds.Tables["Result"].Rows[i]["Longitude"].ToString() + "' "); MarkerIcon.Add(" '" + ds.Tables["Result"].Rows[i]["markericons"].ToString() + "' "); } String geocodevalues= String.Join("...