Did a bit more investigation and it looks like it should be working... I'm using 0.9.3
class StyleMap(StyleSelector):
"""Styles affect how Geometry is presented.
Arguments are the same as the properties.
"""
def __init__(self,
normalstyle=None,
highlightstyle=None):
super(StyleMap, self).__init__()
self._pairnormal = None
self._pairhighlight = None
self.normalstyle = normalstyle
self.highlightstyle = highlightstyle
And this is processed correctly (as far as I can tell) when the feature's __str__ is called:
class Feature(Kmlable):
.....
def __str__(self):
buf = []
for stylemap in self._stylemaps:
self._addstyle(stylemap.normalstyle)
self._addstyle(stylemap.highlightstyle)
str = '<{0} id="{1}">'.format(self.__class__.__name__, self._id)
buf.append(str)
for style in self._styles:
buf.append(style.__str__())
for stylemap in self._stylemaps:
buf.append(stylemap.__str__())
...
Makes me think it may be a user error....
Cheers,
Basil