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

MultiGeometry with diferent LineStyles.

May 24, 2013 at 2:22 PM
Edited May 24, 2013 at 2:22 PM
Good morning folks,

looking for a way to create two lines with diferent colors, I came against this post stating that it is impossible to do so (at least in a simple way).

Does SharpKml has any work around or maybe some method that may help it out?

Thanks in advance.
May 24, 2013 at 8:21 PM
SharpKML provides a way to manipulate the KML structure in C# (similar to how you can access the DOM through JavaScript). This means that if you can't do it writing the KML by hand then it is not possible (even if the library permitted it, it would be invalid KML).

Sorry I can't give you the answer you wanted! This page does have an example that has an outlined line, though not sure if that's what you're after.

May 24, 2013 at 9:33 PM
Hello Sam,

I manage to handle the problem by using multiple PlaceMarkers, each one with its own lineStyle.

Thanks for your help anyway.
And the project is providing me a much needed help in handling kml/kmz files, my thanks to all the project team!