This won't work if the feature is in an ol.layer.Image layer (configured with an ol.source.ImageVector).