-
Notifications
You must be signed in to change notification settings - Fork 38
get rid of text-max-size, icon-max-size #329
Conversation
I was actually leaning towards keeping |
There are going to be exceptions and special cases either way. If they are paint properties then we'll have an exception where buffers need to be recreated when a paint property changes (either through the api or a class change). On the implementation side it's easier and more consistent if they are layout props. I hadn't thought about the chart ui usecase though. I think we may need to change the paint and layout concepts (especially with the upcoming dds) but that seems like too much for v8. It might be ok to hardcode an exception in the chart usecase for now |
I'm going to keep pushing back here. 😄 How much harder / more complex would it be to keep them as paint properties? Another potential issue with making them layout properties is that you lose the ability to change text size via paint classes. (The v7 satellite style has a few of these, though I think its particular use of |
I still think that it is easier to make them layout properties than paint properties.
Since the setPaintProperty would need an exception for these properties and would trigger tile reparsing. I'm not familiar enough with the batch style changes, but there might need to be an exception there.
Changing text size with classes would require recreating the buffers. This is ok, but very different from how paint property changes work. We should implement class support for all properties that affect buffers (all layout properties), not just these two. Since /app doesn't support classes I don't think this needs to be in v8. I think the code mostly thinks of layout properties as properties that affect buffers. Them being evaluated only at round zooms is a secondary effect of that. history: /app doesn't expose any of these concepts. Layout and paint properties look the same in /app. Refs are completely invisible. If /app doesn't expose the concepts, should we remove them from the spec? |
Ok, I'm convinced; going to merge now. I think we will probably make refs an internal optimization -- mapbox/mapbox-gl-js#1393. |
299d15e
to
1046778
Compare
and make text-size, icon-size into layout properties
mapbox/mapbox-gl-js#1419
#255