summaryrefslogtreecommitdiff
path: root/include/mbgl/style
Commit message (Collapse)AuthorAgeFilesLines
* [core] Add LayerTypeInfo::TileKindMikhail Pozdnyakov2019-09-181-0/+6
|
* [core] Check layer compatibility with sourceMikhail Pozdnyakov2019-09-187-1/+13
|
* [build] Fix clang format and tidy checksJuha Alanen2019-09-181-3/+2
|
* [core] Add feature state support to expressionJuha Alanen2019-09-182-0/+13
|
* [Core] Fix wrong `maxzoom` setting of tileSet when using URL source (#15581)zmiao2019-09-171-1/+4
| | | | | | | | | | | | * [core] Take max/min zoom option from style if they are set * [core] std::move input value * [Core] Add changelogs * [Core] Fix clang-format reported error * [Core] fix clang-tidy reported error
* [core] Expose mbgl::style::Light::setPropertyBruno de Oliveira Abinader2019-09-112-0/+8
| | | | Works the same way as mbgl::style::set{Paint,Layout}Property functions.
* [core] Use mapbox::base::TypeWrapper instead of utils::peerMikhail Pozdnyakov2019-09-102-4/+4
|
* [core, ios, macos] SDK objects should hold weak pointers to the core style ↵Mikhail Pozdnyakov2019-09-097-4/+39
| | | | objects (#15539)
* Indroduce clusterProperty option for aggregation (#15287)zmiao2019-08-163-18/+30
| | | | | | | | | | * indroduce clusterProperty option for aggregation * remove unnecessary codes * update geojson_option conversion * fix reviewing findings
* [core] Add style bindings for "text-writing-mode" layout propertyAlexander Shalamov2019-08-132-0/+9
|
* [core] Synchronize render passes and render tilesMikhail Pozdnyakov2019-07-111-0/+2
| | | | | | | | | | | | | | | | Before this change render passes were assigned for the whole layer at properties evaluation stage. This caused problems, as layer render data are bound to the tile and these data might differ from tile to tile, depending on which tile has been updated by the tile worker and which has not been yet updated. This change takes into consideration the actual render passes required for each tile and combines them for the layer render passes. Naturally, this change also introduces render pass check for each render layer in `RenderLayer::render()` implementations.
* [core] Introduce LayerProperties::constantsMask()Mikhail Pozdnyakov2019-07-021-1/+2
| | | | | | Constants mask for data-driven paint properties is a reliable criteria of whether the given updated properties can still be used with the existing bucket (and the gl program instance).
* [core] Add number-format expressionJuha Alanen2019-06-272-1/+42
|
* [core] Don't use optional unique_ptr in function coversion codeAnder Conselvan de Oliveira2019-05-211-7/+7
| | | | | Since unique_ptr is already nullable there is no need to wrap it in an optional<>.
* [core] Fix most identity function with default legacy expression testsAnder Conselvan de Oliveira2019-05-211-8/+15
| | | | | Add handling of default value to the conversion of legacy identity functions. The color and enum tests still don't pass though.
* [core] Remove RenderLayerSymbolInterfaceMikhail Pozdnyakov2019-05-191-0/+6
|
* [core] Make the BackgroundScheduler a singletonThiago Marcos P. Santos2019-05-101-2/+1
| | | | | | | | | | - Do not carry it over everywhere as parameter, it is a shared instance anyway and the lifecycle is pretty much the app lifecycle from the moment we instantiate a map. - Rename to BackgroundScheduler because it is a Scheduler that will do tasks in the background, we don't make assumptions if it is a thread pool or a single thread. - Most importantly, remove the dependency from `core` on `platform`.
* [core] Remove clipping option from RenderTile and style::LayerMikhail Pozdnyakov2019-05-081-6/+0
|
* [core] Keep shared_ptr to thread pool in CustomGeometrySourceAlexander Shalamov2019-05-031-0/+2
| | | | | CustomGeometrySource should keep strong reference to shared thread pool that is used by CustomTileLoader.
* [build] change style code generator to sort properties alphabeticallyKonstantin Käfer2019-05-0210-301/+301
| | | | JSON keys in our style specification don't have a defined order. This change sorts them alphabetically so that we can rely on the order remaining them same across code generation runs.
* [core] Render layers use synchronized buckets and paint propertiesMikhail Pozdnyakov2019-04-171-0/+5
| | | | Actual for layers rendering the geometry tile data: line, fill, fill-extrusion, heatmap, circle, symbol (was updated in previous commits).
* [core] Add `FadingTiles` layer type propertyMikhail Pozdnyakov2019-04-171-0/+6
|
* [core] Introduce `style::LayerProperties` interface and its implementationsMikhail Pozdnyakov2019-04-171-0/+29
|
* [core] Enable 'symbol-sort-key' layout property and generate style codeAlexander Shalamov2019-04-171-0/+4
|
* [core] Add 'auto' enum value to symbol-z-order layout propertyAlexander Shalamov2019-04-171-0/+1
|
* [core] Move should not call destructorsAlexander Shalamov2019-04-051-18/+7
|
* [core] clang-tidy fixesKonstantin Käfer2019-04-0510-236/+236
|
* [core] auto value for 'text-justify' fieldMikhail Pozdnyakov2019-03-291-0/+1
|
* [core] Enable 'text-radial-offset' propertyMikhail Pozdnyakov2019-03-291-0/+4
|
* [core] Enable text-variable-anchor propertyMikhail Pozdnyakov2019-03-293-0/+11
|
* [core] Forward evaluation context directly to evaluated propertyAlexander Shalamov2019-03-151-1/+5
| | | | | So that default value owned by the FormatSectionOverride, can be evaluated based on required context parameters.
* [core] Add possibility of overriding paint properties inside format ↵Alexander Shalamov2019-03-135-88/+147
| | | | | | | | | | | | | | | | | | expression #14062 * [core] Add format override expression and formatted section to evaluation context * [core] Add textColor to TaggedString's formatted section * [core] Add FormatSectionOverrides and introduce overridable properties * [core] Populate symbol layer paint properties for text sections * [core] Add benchmark for style that uses text-color override * [core] Add unit test for FormatOverrideExpression * [core] Add unit test for FormatSectionOverrides
* [core] Drop LayerTypeMikhail Pozdnyakov2019-01-042-21/+0
| | | | | Drop LayerType and its remaining usages. The generic code should be layer type agnostic.
* [core, android, darwin] Move layer factories to separate filesMikhail Pozdnyakov2018-12-1011-99/+0
|
* [core] convert CompoundExpressionRegistry to constexpr hash mapKonstantin Käfer2018-12-042-11/+3
|
* [core] use constexpr map using eternal for expression lookupsKonstantin Käfer2018-12-041-2/+1
|
* [core] layermanager folderMikhail Pozdnyakov2018-11-3012-80/+11
| | | | Move `LayerManager` and `LayerFactory` abstract classes to a dedicated folder.
* [core] Support fill-extrusion-vertical-gradientBruno de Oliveira Abinader2018-11-291-0/+6
|
* [core] LayerManager can disable annotationsMikhail Pozdnyakov2018-11-281-0/+22
| | | | | | | | | | | | | At the moment, the annotations implementation in the `mapbox-gl-native` core is creating concrete layer instances apart from `LayerManager/LayerFactory` code path. So, annotations must be disabled if the `LayerManager` implementation does not provide line, fill or symbol layers (those, used by the annotations). Note: in future, annotations implementation will be moved from the core to the platform SDK level(see https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation) and `LayerManager` won't need to disable it.
* [core][Android][Darwin] LayerManager creates RenderLayer instancesMikhail Pozdnyakov2018-11-2712-98/+84
| | | | | | | | `LayerManager` is now responsible for `RenderLayer` instances creation, so that there is a single entry point for creating of objects, which correspond to a certain layer type. The `LayerType type` field is dropped from `Layer::Impl`.
* [core] Let placement transitions use the transition duration, if set, and ↵Bruno de Oliveira Abinader2018-11-211-3/+7
| | | | allow disabling them entirely
* [core] Add static layer properties to mbgl::style::LayerTypeInfoAlexander Shalamov2018-11-191-3/+22
|
* [core][android] Introduce mbgl::style::LayerTypeInfoMikhail Pozdnyakov2018-11-1512-78/+53
| | | | | | | | | The `LayerTypeInfo` contains static meta data about certain layer type. Each layer module should have a single immutable `LayerTypeInfo` instance for the represented layer type. Both `LayerImpl` and `LayerFactory` from the module always refer to the same `LayerTypeInfo` instance, so address of this instance can be used as a layer module Id during the process life time.
* noexcept specifier for layer factory methodsMikhail Pozdnyakov2018-11-0712-27/+27
|
* Refer corresponding LayerFactory instance from the Layer::ImplMikhail Pozdnyakov2018-11-0712-35/+110
|
* Introduce the style::Layer factory classesMikhail Pozdnyakov2018-10-3111-2/+119
| | | | | | | | | This patch introduces the initial implementation of - A `LayerFactory` abstract class that creates `style::Layer` instances of a certain layer type (line, hillshade, round, ..) - A singleton `LayerManager` class, which is responsible for initializing the `LayerFactory` instances and forwarding the `create()` calls to the corresponding factory.
* Remove style::Layer::is()/as()Mikhail Pozdnyakov2018-10-3111-75/+0
|
* Consolidate `style::Layer` properties APIMikhail Pozdnyakov2018-10-2512-196/+55
| | | | | | | | The `style::Layer` class now exposes all the properties contained at `style::LayerImpl`. This allowed to drop `style::Layer::accept()` method usage, avoid the repeated generated code and thus save some binary size. This patch is a part of the layers modularization effort.
* [ios, macos] Minimal darwin wrappers of 'format' expressionChris Loer2018-10-151-1/+5
| | | | Add support for `MGL_FUNCTION('format', <text>, <options dictionary>)`
* [core] Initial implementation of 'format' expressionChris Loer2018-10-1518-8/+153
|