Multiple markers on based onlongitude latitude on artem Google Maps

Aug 8, 2012 at 3:28 PM

Hi ,

I want to show multiple markers on based of longitudes and latitudes in artem google maps. currently i can show only one address based on longitude and latitude on map.

i am using Asp.net 4.0 vs 2010 .. I really appreciate it if anybody can help me asap

on button click i am using this code

 

			string codeBehindValue = txtLatitude1.Text;
			string codeBehindValues =  txtLongitude1.Text;
 
			//Label1.Text=codeBehindValue+" " +codeBehindValues;
			dt1 = new DataTable("TempTable");
			//Adding Columns				
			dt1.Columns.Add("Longitude"typeof(string));
			dt1.Columns.Add("Latitude"typeof(string));
			//	dt1.Rows.Add(txtLongitude.Text, txtLatitude.Text);\
			dt1.Rows.Add(codeBehindValue, codeBehindValues);
			DataView dView = new DataView(dt1);
			string[] arrColumns = { "Longitude""Latitude" };
			dt1 = dView.ToTable(true, arrColumns);
			GridView1.DataSource=dt1;
			GridView1.DataBind();
			Marker m1 = new Marker();
			m1.Title = "ALLAH is Great";
			m1.Position = new LatLng(double.Parse(txtLatitude1.Text), double.Parse(txtLongitude1.Text));
 
			GoogleMap1.Markers.Add(m1);
 
			GoogleMap1.Longitude = m1.Position.Longitude;
			GoogleMap1.Latitude = m1.Position.Latitude;
			GoogleMap1.MapType = MapType.Roadmap;
			GoogleMap1.Zoom = 16;
			GoogleMap1.Visible = true;