From what I see there is no way to have a polygon (fill) stroke larger than the 1px border (because it uses the 1px strip from antialiasing I assume?). Am I missing a straightforward way to do this? It would be a very nice feature to have.
My first thought would be to draw the polygon both as a fill and then as a line, but cannot seem to get that to work.
Correct, this is static right now.
Flagging this as a feature request.
My first thought would be to draw the polygon both as a fill and then as a line, but cannot seem to get that to work.
@ekelleyv that is correct. To draw the polygon as a line:
"type": "line" and "feature_type": "fill""line-width" and "line-color" are defined in the style@edenh Fantastic! That worked. Although I believe you meant just "width" and "color" in the style.
On an only slightly related note, how do I avoid the line drawing at the edge of the vector tile? I am creating custom vector tiles using node-mapnik. My guess is that the polygons are being clipped along the tile boundary, causing the render to draw lines there. Is this something y'all have encountered?
Great work on mapbox-gl, btw.
@ekelleyv To prevent border lines, we're using a buffered clipping, so that the vector tile actually contains a bit more data around the vector tile's clipping rect.
Tracking this in https://github.com/mapbox/mapbox-gl-style-spec/issues/223.
Most helpful comment
Correct, this is static right now.
https://github.com/mapbox/mapbox-gl-native/blob/0fa3fe523b686aa16fa6275eb9fac4ac14478233/src/renderer/painter_fill.cpp#L38
Flagging this as a feature request.