summaryrefslogtreecommitdiff
path: root/src/mbgl/style/expression
Commit message (Collapse)AuthorAgeFilesLines
* [android] expose Formatted text-field setterŁukasz Paczos2018-12-041-3/+57
|
* [core] convert CompoundExpressionRegistry to constexpr hash mapKonstantin Käfer2018-12-043-110/+420
|
* [core] use constexpr map using eternal for expression lookupsKonstantin Käfer2018-12-042-39/+44
|
* [build] Update to geometry v1.0.0Bruno de Oliveira Abinader2018-11-132-12/+7
|
* [core] Initial implementation of 'format' expressionChris Loer2018-10-157-5/+316
|
* [core,test] Update expression style parsing test fixture.Chris Loer2018-10-151-18/+14
| | | | Always clear errors before trying automatic coercion for a new compound expression overload.
* [core] Add automatic argument coercion for compound expressions with ↵Chris Loer2018-10-151-64/+91
| | | | multiple overloads.
* [core] For string-valued properties, do coercion rather than assertionJohn Firebaugh2018-09-195-34/+56
|
* [core] Auto-convert concat arguments to stringsJohn Firebaugh2018-09-192-9/+13
|
* [core] Make "to-number" of null behave as documentedJohn Firebaugh2018-09-131-0/+1
|
* [core] Implement array assertion fallback behaviorJohn Firebaugh2018-09-133-121/+76
| | | | This was added in gl-js in #7095.
* [core] to-color should be idempotentJohn Firebaugh2018-09-131-0/+3
| | | | Ports https://github.com/mapbox/mapbox-gl-js/pull/7260.
* [core] ["to-array", <item type>, <empty array>] should work for any item typeJohn Firebaugh2018-09-131-4/+12
| | | | Ports https://github.com/mapbox/mapbox-gl-js/pull/7261.
* [android] add support for gnustlKonstantin Käfer2018-09-111-1/+1
|
* Port symbol-z-order symbol layout style-spec property to Nativeupstream/sort-by-yryanhamley2018-09-071-0/+3
|
* [core] Add `line-gradient` propertyMikhail Pozdnyakov2018-08-232-1/+11
| | | | | | | | Porting of https://github.com/mapbox/mapbox-gl-js/pull/6303 See the link above for the description of the feature and its limitations). Based on patch from @lbud (Lauren Budorick).
* [core] make style/conversion.hpp implementation privateKonstantin Käfer2018-08-1918-2/+18
|
* [core] Fix out of range exception for string compareVladimir Kondrashov2018-08-141-2/+2
|
* Rename `EvaluationContext::heatmapDensity` to `colorRampParameter`Mikhail Pozdnyakov2018-08-072-4/+4
| | | | | More generic name as the same class member is to be used by the linear gradient properties.
* Relax typing for comparison operators (#12537)Anand Thakker2018-08-025-137/+294
| | | | | | | | | | * Relax typing for comparison operators Ports https://github.com/mapbox/mapbox-gl-js/pull/6961 * Review comments * Lint fixes
* [core] Simplify CompoundExpression implementationJohn Firebaugh2018-07-304-55/+110
|
* [core] Avoid unnecessary template instantiationsJohn Firebaugh2018-07-301-32/+23
|
* Fix compilation errors with libc++ on QNX 7Sudarsana Babu Nagineni2018-07-303-15/+15
| | | | | | | | | | This patch fixes the compilation errors on QNX 7: 1) QNX 7 compiler (i.e qcc based GCC 5.4.0 with libc++ from LLVM) has a limited c++11 feature support and causing the compilation errors with the inheriting constructors. This fixes the issues by providing the required constructors explicitly. 2) Resolves an ambiguous overload error with optional<T>
* [core] Replace expressions RTTI with enums + static castBruno de Oliveira Abinader2018-07-2414-37/+70
|
* [core] Convert token strings to expressionsJohn Firebaugh2018-07-201-14/+14
|
* [core] Move expression.cpp to expression directoryJohn Firebaugh2018-07-201-0/+38
|
* [core] Replace {Source,Camera,Composite}Function with PropertyExpressionJohn Firebaugh2018-07-201-5/+9
|
* [core] Convert legacy functions directly to expressionsJohn Firebaugh2018-07-131-0/+9
|
* [core] Simplify Value conversionsJohn Firebaugh2018-07-121-66/+19
| | | | | | Use a single template function for each of {to,from}ExpressionValue, always dispatching to ValueConverter. Remove unused ValueConverter::ExpressionType typedefs.
* [core] Introduce "collator" expressionsChris Loer2018-07-037-14/+199
| | | | Cross platform parsing and evaluation code.
* [core] Add assertions to expression constructorsJohn Firebaugh2018-06-295-7/+39
|
* [darwin] Replace use of *Stops with expressions DSLJohn Firebaugh2018-06-291-0/+27
|
* [core] Replace use of *Stops with expressions DSLJohn Firebaugh2018-06-293-92/+208
|
* [core] fix crash when trying to parse legacy filtersKonstantin Käfer2018-06-291-0/+5
| | | | 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] InterpolateBase → Interpolate; Interpolate → InterpolateImplJohn Firebaugh2018-06-283-16/+16
|
* [core] Privatize Interpolate<T>John Firebaugh2018-06-281-7/+88
|
* [core] Move non-polymorphic Interpolate methods to baseJohn Firebaugh2018-06-281-2/+1
|
* [core] Split Interpolator into a separate fileJohn Firebaugh2018-06-281-3/+0
|
* [core] Simplify parseInterpolateJohn Firebaugh2018-06-271-38/+14
| | | | | * Merge type checking into match arms * No need to use interpolator->match(...)
* [core] Fix GCC8's new -Wcatch-value warningsZsolt Bölöny2018-06-251-1/+1
| | | Polymorphic types shouldn't be caught by value, as the warning message says. Catch them by constant reference instead.
* [core] add raster-resampling property (#12176)upstream/rcleeMolly Lloyd2018-06-211-0/+4
| | | | | | | | | | * update style-code for raster-resampling * implement user-defined raster-resampling * invert filter condition * raster-resampling -> raster-resampling-mode for darwin language conventions
* [core] don't use floating point versions of pow/logKonstantin Käfer2018-06-041-1/+1
| | | | | | GLIBC 2.27 added new versioned symbols of powf and logf, while the double versions of pow and log remained stable. Prefer the double version to avoid introducing a dependency on a newer version of GLIBC than strictly necessary. See https://lists.gnu.org/archive/html/info-gnu/2018-02/msg00000.html
* [core] Align match behavior with case/==John Firebaugh2018-05-181-2/+16
| | | | Makes `["match", ["get", k], label, match, otherwise]` equivalent to `["case", ["==", ["get", k], label], match, otherwise]`. This changes the behavior of match expressions where the runtime type of the input does not match the type of the labels: previously such expressions produced a runtime type error and then fell back to the property default value; now they produce the fallback value from the match expression.
* Merge branch 'release-boba' into masterupstream/fabian-merge-release-4.0.1-masterFabian Guerra2018-05-172-35/+298
|\ | | | | | | | | | | | | | | | | | | | | | | # 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 null to empty string, not “null”Minh Nguyễn2018-05-141-0/+1
| |
| * [core] Convert "legacy" filters directly into expressions (#11610)Lucas Wojciechowski2018-05-102-37/+299
| | | | | | Ports the specialized filter-* expressions from GL JS, adding them to src/mbgl/style/expression/compound_expression.cpp
* | [qt] Fix build when building the Qt Location pluginThiago Marcos P. Santos2018-05-141-1/+1
| | | | | | | | | | - MinGW has to explicitly know that is building a static library. - Android doesn't have 'round' on the std:: namespace when using g++.
* | [core] Port is-supported-script to native.Chris Loer2018-04-271-0/+5
|/ | | | Native port is much simpler because RTL text support is always enabled.
* Don't enforce ["zoom"] constraints for filters (#11672)Anand Thakker2018-04-121-3/+24
| | | | | | | | | | | | * Don't enforce ["zoom"] constraints for filters Fixes #11594 * Add a couple of comments * Fix ambiguous constructor call * ParsingContext(optional<Type>) => ParsingContext(Type)
* Add abs, round, floor, ceil operators (#11653)Anand Thakker2018-04-111-0/+6
| | | | | | | | | | | | | | | | | | | | * Add abs, round, floor, ceil operators Port of https://github.com/mapbox/mapbox-gl-js/pull/6496 * [ios, macos] Simplified abs, ceiling, floor expressions * [ios, macos] Added rounding expression function * [android] - binding integration for round, ceil, floor and abs expressions * Update mapbox-gl-js to include non-integer rounding test * Drop extra braces * mapbox-gl-js -> master * Update style-spec docs -> PropertyFactory.java