Unless/until GL gets an integrated Polygon layer type that supports both stroke and fill, simplespec-to-gl-style will need to create two output layers for each Polygon input: a fill layer to reflect the fill-* styles, and a line layer to reflect the stroke-* styles.
As an optimization, it could avoid creating layers if the fill or stroke is not going to be visible (fill-opacity: 0, stroke-width: 0, or stroke-opacity: 0).
Unless/until GL gets an integrated Polygon layer type that supports both stroke and fill, simplespec-to-gl-style will need to create two output layers for each
Polygon
input: a fill layer to reflect thefill-*
styles, and a line layer to reflect thestroke-*
styles.As an optimization, it could avoid creating layers if the fill or stroke is not going to be visible (fill-opacity: 0, stroke-width: 0, or stroke-opacity: 0).