summaryrefslogtreecommitdiff
path: root/include/mbgl/style
Commit message (Collapse)AuthorAgeFilesLines
* [core] For string-valued properties, do coercion rather than assertionJohn Firebaugh2018-09-191-10/+23
|
* [core] Auto-convert concat arguments to stringsJohn Firebaugh2018-09-191-0/+2
|
* [core] Implement array assertion fallback behaviorJohn Firebaugh2018-09-133-48/+1
| | | | This was added in gl-js in #7095.
* Port symbol-z-order symbol layout style-spec property to Nativeupstream/sort-by-yryanhamley2018-09-072-0/+9
|
* [core] Fix cubic-bezier interpolation for zooms outside stop range.Chris Loer2018-09-061-1/+7
| | | | | Fixes issue #12812. Using `util::interpolationFactor` handles the case where inputLevels.min == inputLevels.max, so it returns an interpolation factor of "0" instead of dividing by 0.
* [core] Add `line-gradient` propertyMikhail Pozdnyakov2018-08-232-1/+8
| | | | | | | | 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-1922-393/+335
|
* [core] Factor out setVisibility conversionJohn Firebaugh2018-08-131-0/+1
|
* [core] Eliminate setProperty & co.John Firebaugh2018-08-1313-3/+49
|
* [core] Replace unique_any with peer from mapbox-bindgenBruno de Oliveira Abinader2018-08-082-4/+4
|
* [core] Add lineMetrics to GeoJSONOptionsMikhail Pozdnyakov2018-08-081-0/+1
| | | | | This patch also bumps geojson-vt-cpp version to 6.6.0, which enables the `lineMetrics` option.
* Rename `EvaluationContext::heatmapDensity` to `colorRampParameter`Mikhail Pozdnyakov2018-08-071-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-024-36/+70
| | | | | | | | | | * Relax typing for comparison operators Ports https://github.com/mapbox/mapbox-gl-js/pull/6961 * Review comments * Lint fixes
* [core] Merge DataDrivenPropertyValue into PropertyValue (#12513)John Firebaugh2018-07-3115-329/+210
|
* [core] Tweak conversions to reduce binary sizeJohn Firebaugh2018-07-306-126/+29
| | | | | * return {} → return nullopt * error = { "..." } → error.message = "..."
* [core] Simplify CompoundExpression implementationJohn Firebaugh2018-07-302-102/+21
|
* Fix compilation errors with libc++ on QNX 7Sudarsana Babu Nagineni2018-07-301-1/+4
| | | | | | | | | | 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-2415-27/+68
|
* [core] Add `symbol-placement: line-center`Chris Loer2018-07-231-1/+2
| | | | | - Remove unused/vestigial 'maxCameraDistance' - Create a single collision circle for line labels that are less than half the width of a collision circle
* Keep original input for filters using legacy syntax.Asheem Mamoowala2018-07-231-3/+17
|
* [core] Convert token strings to expressionsJohn Firebaugh2018-07-207-29/+41
|
* [core] Replace {Source,Camera,Composite}Function with PropertyExpressionJohn Firebaugh2018-07-2011-293/+164
|
* [core] Convert legacy functions directly to expressionsJohn Firebaugh2018-07-1312-966/+64
|
* [core] Simplify Value conversionsJohn Firebaugh2018-07-121-41/+23
| | | | | | Use a single template function for each of {to,from}ExpressionValue, always dispatching to ValueConverter. Remove unused ValueConverter::ExpressionType typedefs.
* Rename `HeatmapColorPropertyValue` to `ColorRampPropertyValue`Mikhail Pozdnyakov2018-07-054-23/+23
| | | | | | | | Based on patch from @lbud (Lauren Budorick). Give `HeatmapColorPropertyValue` a more generic name, since the same value type will be used for both `heatmap-color` and `line-gradient` properties.
* [core] Introduce "collator" expressionsChris Loer2018-07-035-1/+86
| | | | Cross platform parsing and evaluation code.
* [core] Add assertions to expression constructorsJohn Firebaugh2018-06-293-20/+7
|
* [core] Remove stops-based *Function constructorsJohn Firebaugh2018-06-295-155/+81
|
* [darwin] Replace use of *Stops with expressions DSLJohn Firebaugh2018-06-291-0/+7
|
* [core] Replace use of *Stops with expressions DSLJohn Firebaugh2018-06-295-20/+68
|
* [core] InterpolateBase → Interpolate; Interpolate → InterpolateImplJohn Firebaugh2018-06-284-9/+9
|
* [core] Privatize Interpolate<T>John Firebaugh2018-06-282-102/+30
|
* [core] Move non-polymorphic Interpolate methods to baseJohn Firebaugh2018-06-281-17/+16
|
* [core] Split Interpolator into a separate fileJohn Firebaugh2018-06-283-43/+52
|
* [core] add raster-resampling property (#12176)upstream/rcleeMolly Lloyd2018-06-212-0/+11
| | | | | | | | | | * update style-code for raster-resampling * implement user-defined raster-resampling * invert filter condition * raster-resampling -> raster-resampling-mode for darwin language conventions
* Accept constant expressions in non-dds properties (#11960)Anand Thakker2018-05-231-3/+11
| | | Closes #11940
* [core] Convert "legacy" filters directly into expressions (#11610)Lucas Wojciechowski2018-05-104-315/+34
| | | Ports the specialized filter-* expressions from GL JS, adding them to src/mbgl/style/expression/compound_expression.cpp
* Don't enforce ["zoom"] constraints for filters (#11672)Anand Thakker2018-04-125-59/+44
| | | | | | | | | | | | * Don't enforce ["zoom"] constraints for filters Fixes #11594 * Add a couple of comments * Fix ambiguous constructor call * ParsingContext(optional<Type>) => ParsingContext(Type)
* Fix style parsing bug for constant expressions (#11606)Anand Thakker2018-04-092-2/+3
| | | | | | | | | | | | | | * Fix style parsing bug for constant expressions Closes #10849 * Ignore tests for unported GL JS change Refs https://github.com/mapbox/mapbox-gl-js/pull/6429 * Fuller fix * Update mapbox-gl-js
* [core] Add Projection matrix to CustomLayerRenderParameters to transform web ↵Asheem Mamoowala2018-04-051-0/+3
| | | | mercator world coordinates to GL coordinates.
* Use a host interface for CustomLayer instead of function pointers (#11553)Asheem Mamoowala2018-04-021-46/+40
| | | | | | Use a host interface for CustomLayer instead of function pointers Co-authored-by: Julian Rex <julian.rex@mapbox.com>
* [core] Don't resolve tokens after evaluating a text-field or icon-image ↵John Firebaugh2018-03-224-22/+26
| | | | expression (#11509)
* [core] Add expression filter support (#11251)Lucas Wojciechowski2018-03-092-241/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP * WIP * WIP * Remove Filter::operator()(const Feature&) * WIP * WIP * WIP * WIP * Hook up expression filter evaluator * Replace `shared_ptr` with &reference * Fill in implementation of `void operator()(const ExpressionFilter&)` * Fix failing tests * Switch back to a shared_ptr per chat with @anandthakker * Fix benchmark compilation * Shot in the dark to fix CI * Shot in the dark to fix CI (part 2) * Shot in the dark to fix CI (part 3) * In src/mbgl/style/conversion/filter.cpp, add a port of isExpressionFilter and use it to decide in Converter<Filter>::operator() whether to parse the incoming JSON as an ExpressionFilter or one of the legacy filter types * Remove bool Filter::operator()(const GeometryTileFeature&) const * Ensure the map zoom is passed into filtering operations wherever applicable * Add expression filter tests * Addressed PR feedback * Implement `NSPredicate *operator()(mbgl::style::ExpressionFilter filter)` * Fix formatting& nit
* Relax type checking for "length"John Firebaugh2018-03-011-0/+32
|
* [core] Implement Expression::serialize()Chris Loer2018-02-2817-8/+60
| | | | | | | | Issue #10714 - Each expression stores its operator as a string, and default serialization is [operator, serialize(child1), ...] - Custom implementations of `serialize` for Expression types that don't follow the pattern - expression::Value -> mbgl::Value converter - node_expression bindings to expose `serialize`
* Correctly parse constant expressions in dds style properties (#11282)Anand Thakker2018-02-212-3/+22
| | | | | | | | * Correctly parse constant expressions in dds style properties Closes #10849 * Clarify
* [core, ios, macos, android, node] Heatmap layer (#11046)Vladimir Agafonkin2018-02-156-0/+188
| | | | | Co-Authored-By: Konstantin Käfer <mail@kkaefer.com> Co-Authored-By: Anand Thakker <anandthakker@users.noreply.github.com> Co-Authored-By: Minh Nguyễn <1ec5@users.noreply.github.com>
* Add options for Custom Geometry Source types to enable clipping and wrapping ↵Asheem Mamoowala2018-02-072-0/+22
| | | | geometry (#11041)
* Reimplement style values atop NSExpression (#10726)Minh Nguyễn2018-01-245-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Import headers, not implementation files * [core] Added accessors for various expression parameters Added missing parameter accessors to various expression operator classes, as well as a method on InterpolatorBase and Step that enumerates the stops and their values. * [ios, macos] Silenced warning in test of error condition * [ios, macos] Made MGLSphericalPosition boxable * [ios, macos] Implemented array enumeration during conversion * [ios, macos] Temporarily ignore heatmap layer type * [ios, macos] Migrated MGLSymbolStyleLayer.text to NSExpression MGLSymbolStyleLayer.text is now of type NSExpression instead of MGLStyleValue, as a first step toward migrating the entire layer API from style values to expressions. Implemented conversions from NSExpression to JSON arrays and vice versa. The most common NSExpression functions are now converted into style expressions, but not all of the most common style expression operators are supported yet. * [ios, macos] Implemented string coercion * [ios, macos] Color literals * [ios, macos] Null constant expressions * [ios, macos] Convert dictionary literals * [ios, macos] Interpolation expressions * [ios, macos] to-boolean, to-number, get from object * [ios, macos] Variable expressions Implemented custom expression functions for assigning and referring to variables within the context of an expression. Variables are assigned via a “context dictionary” and applied to an subexpression that is given as another argument to the same expression. Also implemented built-in variable expressions for zoom level and heatmap density. * [ios, macos] Convert colors, offsets, padding in expressions to JSON objects * [ios, macos] Expression-based style property getters Implemented a conversion from mbgl::style::PropertyValues to Objective-C JSON objects, which are then converted to NSExpressions. * [ios, macos] Consolidated property value–expression conversion in MGLStyleValueTransformer * [ios, macos] Predicate and expression guide Extracted documentation about predicates from a documentation comment in MGLVectorStyleLayer.h to a new jazzy guide. Added details about NSExpression support as well. Began updating the “For Style Authors” guide to reflect the transition from style values to expressions. * [ios, macos] Updated style authoring guide Updated the Information for Style Authors guide to discuss expressions instead of style functions. Included a table mapping style specification expression operators to NSExpression syntaxes. * [ios, macos] Migrated codegen templates to expressions * [ios, macos] Applied expression changes via codegen Ran make darwin-style-code. * [macos] Migrated macosapp to expressions * [ios, macos] Updated style function guide This guide needs to be thoroughly rewritten, but for now the example code has been migrated to expressions. * [ios, macos] Eviscerated style function tests * [ios, macos] Updated changelogs * [ios] Migrated iosapp to expressions * [ios, macos] Exposed JSON conversion methods publicly * [ios, macos] Removed MGLStyleValue, MGLStyleFunction
* [core] add raster-dem source type and hillshade layer type (#10642)Molly Lloyd2018-01-238-4/+126
|