This project has moved and is read-only. For the latest updates, please go here.

Looking for an example to change Style

Jan 28, 2013 at 11:33 PM


I've an original KML file with multiple <Style> and <Placemark> tags.  How do I use your ShapeKML object to send a new KML file to client application that contains those new changed <Style> tags.  The sample Change.cs shows me how to update changes in the <Placemark>.  I can't figure out how to use the same Update class applies to the style. 

Any help will be appreciated.  Thanks,


Jan 30, 2013 at 9:34 PM
Do you want to generate a new file or cause a file the user has already downloaded to be updated?

If it's the former then you will need to parse the KML file, make the modifications you require and save it as a new file/overwrite the existing file. If it's the later you will indeed need to use the Update element.

What part are you stuck on? Have you tried looking at the Update reference to see how it works, as it might give you an idea of what it can do.

Feb 17, 2013 at 5:51 AM
Your "Change.cs" sample program shows me what I want. Thank you.