Posted on: 4/14/2014 9:39:39 AM | Views : 447

I used SharpKML with asp.net(C#) it generates kml which loads and works in Google Maps but problem is that i can't add few things like:
Styles, Start and End points (big yellow pins), Dividing line string into chunks instead of continuous long line.
i tried everything but it doesn't work even document tag is not added in output.

protected void Button1_Click(object sender, EventArgs e) { var document = new Document(); document.Id = "Document"; document.Name = "Document"; SharpKml.Dom.Style style = new SharpKml.Dom.Style(); style.Id = "yellowLineGreenPoly"; //style.Line = new LineStyle(new Color32(HexStringToColor("7f00ffff"),4)); //Color32 col = HexStringToColor("7f00ffff"); //LineStyle ls = new LineStyle(); //ls.Color = col; //style.Line = ls; //document.AddStyle(st ...

Go to the complete details ...