-
Notifications
You must be signed in to change notification settings - Fork 38
Style format issues #27
Comments
Going to create a new version v2 style format with these changes: v2 changes:
raw changes
implemented in cutting-room-floor/mapbox-gl-style-lint@3bd2ab3 |
Why change without discussion? I agree to all points except:
I'm not convinced about this change. Semantically this is a part of filter — it narrows the data that we have using some criteria, as other attributes are. I'd rather use prefixed
We want to support multiple formats per bucket soon. Are you changing this back to simplify porting native? |
My understanding of the motivations here:
We did some chatting around mapbox/mapbox-gl-js#244 -- I'm not sure what this would get us beyond grouping of icons and labels together. The complexity this causes in a style is scary to me -- every time I've seen this by accident in styles it's left me confused as to what should actually happen. If there's no amazing reason to have this I don't think it'll earn its rent. |
Yeah, that's a nice explanation — makes sense. Could we at least make the style less verbose and repetitive by grouping buckets by source in the style? Like this: "buckets": {
"mapbox-streets.v5": {
"road": { ... }
} |
@mourner the v2 changes so far are a proposal; no parser is implemented yet. I wrote the conversion code to make sure this is a sound proposal. Me posting here was meant as a way of discussing it. I want to move As Young is saying, we aim for a different way of grouping things for label placement. Multi-type buckets are a little too complex to do that. |
👍 to moving
|
opacity
vs.fill/line/...-opacity
? => remains prefixed"fill": true
, but we don't support buckets of multiple types. Instead usetype: "fill"
?filter
containssource
, but they could also be feature properties. Why issource
andlayer
part of thefilter
object? We should either prefix them with$
, or move them back up the hierarchy.opacity
,translate
orenabled
are prefixed too, which makes for a lot of code duplicationThe text was updated successfully, but these errors were encountered: