This project has moved. For the latest updates, please go here.

How to create <styleUrl>#stile</styleUrl>

Jan 9, 2013 at 2:02 PM
Edited Jan 9, 2013 at 2:04 PM

Hi, I'm try to create a kml file with styleurl

but if I use placemark.StyleUrl it says it null.

How I must use the lib?

Style stkIsdn = new Style();
stkIsdn.Id = "Isdn";
IconStyle.IconLink iskIsdn = new 
IconStyle.IconLink(new Uri("http://chart.apis.google.com/chart"));

stkIsdn.Icon = new SharpKml.Dom.IconStyle();
stkIsdn.Icon.Icon = iskIsdn;

docK.AddStyle(stkIsdn);
Placemark placemark = new Placemark();
placemark.Geometry = point;
placemark.Name = "name";
placemark.Description = new Description();
placemark.Description.Text = "DESCRIPTION";
placemark.Id = "Id";
placemark.StyleUrl =???????????
Jul 14, 2015 at 8:44 PM
Edited Jul 14, 2015 at 8:53 PM
placemark.StyleUrl=new Uri("#Isdn",UriKind.Relative);