Placemark color and icon

74 views
Skip to first unread message

jm...@aol.com

unread,
Nov 4, 2011, 6:15:43 PM11/4/11
to libkml

Hi,

I'm currently using the csv2kml example to read in a list of
placemarks that need to be placed in the kml file.

I want to modify virtual bool HandleLine(int line, CsvParserStatus
status, PlacemarkPtr p) in the ContainerSaver class to change the icon
and color of the placemark depending on what the placemark name is.

I see that Placemark has a set_styleselector() function which seems to
be what I need to use, but how do I set the color and icon through the
StyleSelector class?

Thanks

Michael Ashbridge

unread,
Nov 4, 2011, 9:00:34 PM11/4/11
to lib...@googlegroups.com
StyleSelector is abstract. Make yourself a StylePtr, set its icon and color, and hand it to the placemark.


--
You received this message because you are subscribed to the Google Groups "libkml" group.
To post to this group, send email to lib...@googlegroups.com.
To unsubscribe from this group, send email to libkml+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/libkml?hl=en.


Reply all
Reply to author
Forward
0 new messages