Posted on: 4/10/2014 5:34:34 AM | Views : 3504

i'm new to google maps. I am trying to draw a line string on google map via SharpKML.dll in asp.net(C#). I successfully added a point (latitude, longitude) to map via code but now trying to draw linestring (collections of coordinates) but couldn't get it. Please help.

Code:
Point point = new Point(); point.Coordinate = new Vector(-13.163959, -72.545992); // This is the Element we are going to save to the Kml file. Placemark placemark = new Placemark(); placemark.Geometry = point; placemark.Name = "Machu Picchu"; // This allows us to save and Element easily. KmlFile kml = KmlFile.Create(placemark, false); using (var stream = System.IO.File.OpenWrite("C:/Test_Kml.kml")) { kml.Save(stream); Response.Write("KML Created"); } It worked for plotting 1 point on map but i want ...

Go to the complete details ...