mapbox / simplespec-to-gl-style

Converts GeoJSON styled with simplestyle-spec to a GL Style
ISC License
31 stars 6 forks source link

for `Polygons`, create both a fill layer and line (stroke) layer #2

Closed jfirebaugh closed 8 years ago

jfirebaugh commented 8 years ago

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).