summaryrefslogtreecommitdiff
path: root/test/style
Commit message (Collapse)AuthorAgeFilesLines
* [core] GeometryTile and TileLoader keep strong reference to FileSourceMikhail Pozdnyakov2019-05-141-41/+41
| | | | Thus we fix a potential bug: if `Renderer` outlives the `Map` it will hold a stale reference to the `FileSource` instance.
* [core] Create glyph manager at renderer construction timeMikhail Pozdnyakov2019-05-141-1/+1
| | | | Avoid unnecessary glyph manager presence check in `Renderer::Impl::()`.
* [core] Make the BackgroundScheduler a singletonThiago Marcos P. Santos2019-05-103-15/+5
| | | | | | | | | | - 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`.
* [build] change style code generator to sort properties alphabeticallyKonstantin Käfer2019-05-021-1/+1
| | | | 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] Introduce `LayerRenderData`. Source::update() accepts layer properties.Mikhail Pozdnyakov2019-04-171-15/+33
|
* [core] Move should not call destructorsAlexander Shalamov2019-04-051-0/+100
|
* [core] clang-tidy fixesKonstantin Käfer2019-04-051-4/+4
|
* [core] Traverse expression tree when checking for property overridesAlexander Shalamov2019-03-281-0/+12
| | | | | | | | | | Before this change, symbol layer was only checking whether top level 'text-field' layout property expression is FormatExpression and if it has paint property overrides. This change takes into account that 'text-field' might have nested expressions, thus, requires traversal over child expressions. Fixes: #14254
* [core] Add possibility of overriding paint properties inside format ↵Alexander Shalamov2019-03-132-3/+134
| | | | | | | | | | | | | | | | | | 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
* Update mapbox-gl-js submodule to v0.53.0Mikhail Pozdnyakov2019-03-061-1/+4
|
* [core] Transform{State}: s/angle/bearing/Bruno de Oliveira Abinader2019-03-041-2/+2
|
* [test] Fixed headers in source.test.cppMikhail Pozdnyakov2018-12-191-2/+2
|
* [core] Cleanup Transform, use {jump,ease}To() insteadBruno de Oliveira Abinader2018-11-271-1/+1
|
* [core][Android][Darwin] LayerManager creates RenderLayer instancesMikhail Pozdnyakov2018-11-272-6/+6
| | | | | | | | `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`.
* Refactor util::fontStacks()Mikhail Pozdnyakov2018-11-191-17/+22
| | | | | | So that it does not downcast `Layer::Impl` instances. Also, an unneeded `std::vector` construction was removed from `Parser::fontStacks()`.
* [build] Update to geometry v1.0.0Bruno de Oliveira Abinader2018-11-131-3/+3
|
* Remove style::Layer::is()/as()Mikhail Pozdnyakov2018-10-312-8/+8
|
* [core] remove some uses of <iostream> and <sstream>Konstantin Käfer2018-10-231-1/+1
|
* [test] Enable 'format' Expression test.Chris Loer2018-10-151-2/+1
|
* [core, tests] Don't break text-field support "identity functions"Chris Loer2018-10-151-0/+18
|
* [core] Read style's transition from parserBruno de Oliveira Abinader2018-10-031-0/+8
|
* [core] Do not constrain on X axis in ConstrainMode::HeightOnlyBruno de Oliveira Abinader2018-10-021-9/+12
|
* [core] For string-valued properties, do coercion rather than assertionJohn Firebaugh2018-09-191-5/+5
|
* [core] add exception for unimplemented expressions in testsMolly Lloyd2018-08-211-1/+5
|
* [core] make style/conversion.hpp implementation privateKonstantin Käfer2018-08-192-2/+2
|
* [core] add test for comparing filter name to idKonstantin Käfer2018-08-141-0/+4
|
* [core] Add lineMetrics to GeoJSONOptionsMikhail Pozdnyakov2018-08-081-1/+4
| | | | | This patch also bumps geojson-vt-cpp version to 6.6.0, which enables the `lineMetrics` option.
* Fix TileJSON conversion to allow single point boundsAsheem Mamoowala2018-08-021-0/+10
|
* [core] Merge DataDrivenPropertyValue into PropertyValue (#12513)John Firebaugh2018-07-313-17/+16
|
* Keep original input for filters using legacy syntax.Asheem Mamoowala2018-07-231-0/+55
|
* [core] Convert token strings to expressionsJohn Firebaugh2018-07-201-1/+19
|
* [core] Replace {Source,Camera,Composite}Function with PropertyExpressionJohn Firebaugh2018-07-207-104/+72
|
* [core] Convert legacy functions directly to expressionsJohn Firebaugh2018-07-132-40/+0
|
* [core] Introduce "collator" expressionsChris Loer2018-07-031-1/+1
| | | | Cross platform parsing and evaluation code.
* [core] Add assertions to expression constructorsJohn Firebaugh2018-06-291-1/+1
|
* [core] Replace use of *Stops with expressions DSLJohn Firebaugh2018-06-295-191/+97
|
* [core] fix crash when trying to parse legacy filtersKonstantin Käfer2018-06-291-0/+4
| | | | Legacy filters aren't part of the style specification, but you can generate them by parsing a legacy filter in a stylesheet, and obtaining the parsed Filter and serializing it.
* [core] Fix GCC8's new -Wcatch-value warningsZsolt Bölöny2018-06-252-2/+2
| | | Polymorphic types shouldn't be caught by value, as the warning message says. Catch them by constant reference instead.
* [core] Fix crash due to mixing legacy filters and expressions (#12065)Anand Thakker2018-06-061-0/+12
| | | | | | | | | | | | | | | | | | | * Fix crash due to mixing legacy filters and expressions In some cases, (invalid) nested filters that used a mix of legacy filter syntax and expression syntax caused a crash due to a failure to propagate parsing errors from deeper within the filter expression. These errors went undetected in part because these conversion functions returned unique_ptr<Expression> values (or vectors thereof), using {nullptr} to represent a parsing error, but the core expression classes expect unique_ptr<Expression> that are never null. This changes over to using expression::ParseResult (aka optional<unique_ptr<Expression>>), to represent conversion failure the same way we do in the rest of the expression system. * Fix clang 3.8 / gcc 4.9 issue
* Accept constant expressions in non-dds properties (#11960)Anand Thakker2018-05-231-0/+21
| | | Closes #11940
* Clamp TileJSON.bounds latitudes to [-90, 90] (#11964)Asheem Mamoowala2018-05-211-1/+1
| | | Fixes #11963.
* Merge branch 'release-boba' into masterupstream/fabian-merge-release-4.0.1-masterFabian Guerra2018-05-173-5/+71
|\ | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # mapbox-gl-js # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/gradle/dependencies.gradle # platform/darwin/src/MGLVectorTileSource.mm # platform/darwin/src/MGLVectorTileSource_Private.h # platform/ios/CHANGELOG.md # src/mbgl/style/expression/compound_expression.cpp
| * [core] Convert "legacy" filters directly into expressions (#11610)Lucas Wojciechowski2018-05-103-5/+71
| | | | | | Ports the specialized filter-* expressions from GL JS, adding them to src/mbgl/style/expression/compound_expression.cpp
* | [core] Rework spec function/expression taxonomyLauren Budorick2018-05-141-3/+3
| | | | | | Ports https://github.com/mapbox/mapbox-gl-js/pull/6521, updating codegen scripts to parse new expression taxonomy.
* | [core] Port is-supported-script to native.Chris Loer2018-04-271-1/+1
| | | | | | | | Native port is much simpler because RTL text support is always enabled.
* | Bump GL JS pin to get tests for global symbol querying.Chris Loer2018-04-251-0/+4
|/ | | | | | - Pulls over an update to line.vertex.glsl (looks like a no-op?) - Add test ignores for collator, is-supported-script, line-gradient - Exclude collator, is-supported-script, line-gradient from code generation.
* Don't enforce ["zoom"] constraints for filters (#11672)Anand Thakker2018-04-122-3/+13
| | | | | | | | | | | | * Don't enforce ["zoom"] constraints for filters Fixes #11594 * Add a couple of comments * Fix ambiguous constructor call * ParsingContext(optional<Type>) => ParsingContext(Type)
* [core] Round-trip linear interpolatorsMinh Nguyễn2018-03-301-1/+3
|
* [core] Stringify expression syntax, not function syntaxJohn Firebaugh2018-03-141-12/+13
|
* [core] TileJSON conversion clamps bounds longitude to [-180,180], per specAsheem Mamoowala2018-03-091-0/+10
|