Yes, you have to pass as many 'style' as layer, even if it is empty