You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To help close the gap between tm and gl and bring us closer to a public alpha, here is the status of what's currently possible with styles including some I wish we could do in gl. Some of these may be possible already, I just don't know how to accomplish them.
Fills
antialiasing
fill and stroke color including alpha channels
opacity
pattern image
pattern opacity (can be achieved currently with alpha in image, but it would be nice if we could control opacity and transition patterns)
stroke width
stroke placement (inside, outside, middle)
offset with separate styling (or duplicated layers)
At what level do we want to handle some of these things?
Strokes are just lines drawn on top of fills.
Text halos are just glyphs drawn twice with different fake weights.
Shadows are just lines with soft edges under fills.
We can add properties for each of these directly into llmr, or we can let the abstraction be handled elsewhere.
How would this look in the stylesheet? For example in the debug stylesheet, the buildings class is a fill with a stroke property (color). How would you control the stroke width in this situation?
Seems like you cannot simply create a duplicate class for 'casing' to treat the fill bucket as a line, but maybe I'm missing something.
Talked about this on chat, but I'll add here as well:
For complex strokes (something other than 1 pixel solid color), you need to add a new line bucket for those features, and then style that bucket as a regular line.
The feature_type property can be used in buckets to choose which feature types to match. If you want to generate a line bucket for polygons:
{
"feature_type": "fill",
"type": "line"
}
That should cover stroke width, stroke placement, and stroke patterns.
@ansis label fades are working weirdly for me on a Macbook with a trackpad... Most of the time they don't fade. E.g. they don't fade when tile zoom changes, and they also don't fade when you scroll continuously vs just dbl-clicking or zoom inertia after quick scroll.
Activity
kkaefer commentedon Jan 24, 2014
Technically, we can do text outlines and do fake bold/thin text; just a matter of exposing this to the stylesheet.
kkaefer commentedon Jan 24, 2014
What are you referring to with "polygon/line smoothing"?
edenh commentedon Jan 24, 2014
Ideally, would should avoid faux text weights. I was referring to the width and possibly halo-effect of a text stroke/outline.

re: smoothing
Trying to mimic this carto style for polygons and lines. It could also be interesting to have this apply to drawing or other data vis tools down the road. With more precise control, we may allow for abstract work such as seen here: http://www.projectlinework.org/.
ansis commentedon Jan 26, 2014
translations implemented in 1435e18
"translate": [4, 4]The translation values can also be functions, just like line widths.
kkaefer commentedon Jan 27, 2014
\o/
ansis commentedon Jan 27, 2014
At what level do we want to handle some of these things?
Strokes are just lines drawn on top of fills.
Text halos are just glyphs drawn twice with different fake weights.
Shadows are just lines with soft edges under fills.
We can add properties for each of these directly into llmr, or we can let the abstraction be handled elsewhere.
edenh commentedon Jan 27, 2014
How would this look in the stylesheet? For example in the debug stylesheet, the
buildingsclass is a fill with a stroke property (color). How would you control the stroke width in this situation?Seems like you cannot simply create a duplicate class for 'casing' to treat the fill bucket as a line, but maybe I'm missing something.
ansis commentedon Jan 28, 2014
Talked about this on chat, but I'll add here as well:
For complex strokes (something other than 1 pixel solid color), you need to add a new line bucket for those features, and then style that bucket as a regular line.
The
feature_typeproperty can be used in buckets to choose which feature types to match. If you want to generate a line bucket for polygons:{ "feature_type": "fill", "type": "line" }That should cover stroke width, stroke placement, and stroke patterns.
ansis commentedon Feb 2, 2014
Fading for labels implemented in 83a39ec - when we add placement/collision prevention for points we'll be able to fade those too.
mourner commentedon Feb 4, 2014
@ansis label fades are working weirdly for me on a Macbook with a trackpad... Most of the time they don't fade. E.g. they don't fade when tile zoom changes, and they also don't fade when you scroll continuously vs just dbl-clicking or zoom inertia after quick scroll.
edenh commentedon Feb 5, 2014
👍 so awesome, as usual.
mourner commentedon Feb 17, 2014
Anything else to cover here?
edenh commentedon Feb 17, 2014
Just this, if feasible
kkaefer commentedon Feb 17, 2014
@edenh It's pretty unlikely that we're going to implement this anytime because OpenGL ES/WebGL don't have built-in NURBS support.
edenh commentedon Feb 17, 2014
Bummer