summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers
Commit message (Collapse)AuthorAgeFilesLines
* [core] Get rid of user-specified refsJohn Firebaugh2017-01-0424-17/+99
|
* [core, ios] replace `altitude` with `fov`Ansis Brammanis2016-12-211-1/+1
| | | | | | | | | ported from -js: eb6c6596c6a7a61363d30356674e0002153b1d19 `altitude` was a terribly-named variable that was used to indirectly control the fov. This should eliminate some confusion. `altitude` was equivalent to `cameraToCenterDistance / height`
* [core] Convert BucketParameters#layer to a separate parameterJohn Firebaugh2016-12-2116-23/+23
| | | | This parameter varies between Buckets, while the others are constant. It makes more sense as an individual parameter.
* [core] Implement circle-stroke propertiesJohn Firebaugh2016-12-099-4/+338
| | | | Also includes stubs for fill-extrusion layer, because most of the code was auto-generated.
* [core] Convert style properties to a tuple-based approachJohn Firebaugh2016-11-1735-701/+768
| | | | | | | | This converts the style property classes (CirclePaintProperties and so on) to the same tuple-based approach as gl::Attribute and gl::Uniform. The approach is outlined in https://github.com/mapbox/cpp/blob/master/C%2B%2B%20Structural%20Metaprogramming.md. The main advantage of this approach is it allows writing algorithms that work on sets of style properties, without resorting to code generation or manually repetitive code. This lets us iterate on approaches to data-driven properties more easily. Another advantage is that the cascading, unevaluated, and evaluated states of a set of properties exist as independent structures, instead of individual properties holding their own state. This is a more functional approach that makes data flow clearer and reduces state.
* [core] Return source and layer ownership (#7014)Jesse Bounds2016-11-112-5/+8
| | | | | | | | When a source or layer is removed transfer ownership back to the caller so it can (optionally) take it. Preserve the behavior that removing a CustomLayer triggers deinitialization. Deinitialize all custom layers when a style is destroyed in case those layers are not explicitly removed.
* [core] symbol layer - recalculate style on icon/text size changesIvo van Dongen2016-11-113-39/+39
|
* [core] Modern C++ bindings for OpenGLJohn Firebaugh2016-10-282-0/+67
|
* [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-271-2/+2
|
* [core] No need for feature querying to support multipolygonsJohn Firebaugh2016-10-116-9/+9
|
* Better handling for undefined icon|text-rotation-alignment (#6253)Young Hahn2016-09-213-13/+23
| | | | | | * [core, ios, android] Use `auto` value for properties with calculated defaults * Fix render tests
* [core] Extract SymbolLayout from SymbolBucketJohn Firebaugh2016-09-142-40/+33
| | | | | | | | | | | | | | SymbolLayout lives on the worker thread and contains the persistent data needed for repeated placement. SymbolBucket contains the data generated during placement, and is transferred to the main thread for rendering. This eliminates the risky sharing of GeometryTile::buckets between the main thread and worker thread during TileWorker::redoPlacement. While here, rationalize the names of states a SymbolLayout may be in: * Pending: Waiting for the necessary glyphs or icons to be available. * Prepared: The potential positions of text and icons have been determined. * Placed: The final positions have been determined, taking into account prior layers. In TileWorker, all SymbolLayouts are stored in a single vector. Each SymbolLayout knows what state it is in, and TileWorker can easily determine how much progress it can make toward a final result.
* [core, ios, android, qt] Observe style layer mutations rather than requiring ↵John Firebaugh2016-09-067-0/+269
| | | | | | SDKs to use Map::update This paves the way for updates to filter and layout properties to trigger a source reload, without each SDK having to participate in the implementation.
* [core] Add missing classed paint property getterJohn Firebaugh2016-09-067-98/+98
|
* [core] Add static getters for property default values (#6124)John Firebaugh2016-08-238-8/+352
|
* [core] Update color layer properties code generatorBruno de Oliveira Abinader2016-07-141-1/+7
|
* [core] Prefer color aliases for default property valuesBruno de Oliveira Abinader2016-07-135-8/+8
|
* [core] Use PropertyValue<T> for Annotation line/fillBruno de Oliveira Abinader2016-07-131-1/+1
|
* [core] Add support for circle-pitch-scaleJohn Firebaugh2016-07-073-0/+11
|
* [core, node] Implement bindings for addLayerJohn Firebaugh2016-06-2435-287/+164
|
* [core] Adjust layer source properties to better reflect realityJohn Firebaugh2016-06-246-42/+40
| | | | | | | | * Layer source ID is immutable; must be provided to the constructor * Layer source layer is mutable * Layers with GeoJSON sources do not have a source layer While here, make Layer::copy impl-private.
* [core] Include what you useJohn Firebaugh2016-06-247-0/+7
|
* Support for icon-text-fit, icon-text-fit-padding (#5334)Young Hahn2016-06-153-0/+20
| | | | | | | | | | * Add support for icon-text-fit * Port unit tests for getIconQuads() from js => cpp * Add support for padding in all 4 directions. * Update all hashes post-merge
* Color class (#5361)Young Hahn2016-06-1512-17/+15
| | | | | | * Color class * Switch to list initialization
* [core] Extract code templates to individual .ejs filesJohn Firebaugh2016-06-133-0/+192
|
* [tidy] Check modernize-pass-by-valueBruno de Oliveira Abinader2016-06-132-0/+2
| | | | Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html
* text-pitch-alignment (#5288)Young Hahn2016-06-104-8/+23
| | | | | | | | | | | | * First pass at port of https://github.com/mapbox/mapbox-gl-js/pull/2668 * RotationAlignmentType => AlignmentType * Handle undefined default value for text-pitch-alignment and implement inheritance for this value from text-rotation-alignment * Update dependencies * Move handling fo undefined default value out of camelize functions
* [core] Revert line-round-limit default to 1 (#5260)John Firebaugh2016-06-061-1/+1
| | | Refs #5258, #5234.
* [core] Rationalize naming for style-related codeJohn Firebaugh2016-06-0233-0/+2232