Repository navigation
[core] Polymorphic bucket creation - #2873
jfirebaugh wants to merge 6 commits into
Conversation
A tile may go from having particular layers, to not having them. (Annotation tiles in particular.)
This fixes adding shape annotations after VectorTileData objects have been created for annotations already, and will also be necessary for the dynamic Style API.
This means that we don't parse any symbol buckets that are after one that is missing. We could still parse them, but not place them. |
|
I think it's set up so that they are parsed, but not placed: Then mapbox-gl-native/src/mbgl/map/tile_worker.cpp Line 140 in ca25594 Let me know if that looks correct. |
|
There are actually three steps:
|
8522c1f to
8c3b3cb
Compare
Fifth in a series of PRs that builds towards a full-fledged programmatic style API. This is a big chunk of work, but I'm trying to break it up step by step and not create a long-lived branch with a lot of changes.
This episode moves further towards being able to remove the generic
ClassPropertiesin favor of concrete paint and layout classes like those found in style_properties.hpp. The way that I'm going to do that is to continue refactoring until all usage ofClassPropertiesis in layer subclasses, and then substitute the concrete per-layer replacements.This PR eliminates
StyleBucketand moves bucket creation to layer subclasses. Along the way I believe to have fixed #2820, by restoring the previous use of apartialParseboolean.👀 @kkaefer @brunoabinader