summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Use a host interface for CustomLayer instead of function pointers (#11553)Asheem Mamoowala2018-04-022-49/+43
| | | | | | Use a host interface for CustomLayer instead of function pointers Co-authored-by: Julian Rex <julian.rex@mapbox.com>
* [core] Fixed to-rgba with zero opacityMinh Nguyễn2018-03-301-0/+2
|
* [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>
* [core] add support for mapzen terrarium (#11154)Molly Lloyd2018-02-141-2/+8
| | | | | | | | | | | | * add support for mapzen terrarium * Encoding --> DEMEncoding, avoid if statement when unpacking elevation values * add Terrarium test * update submodule * remove redundant checks
* [core] Rename "onLowMemory" to "reduceMemoryUse".Chris Loer2018-02-141-1/+1
| | | | | Android still calls "reduceMemoryUse" only while handling a low memory event. iOS, on the other hand, calls "reduceMemoryUse" every time it enters the background.
* [core] Make RendererObserver a public interfaceThiago Marcos P. Santos2018-02-091-0/+35
| | | | Needed by backends implementing asyncronous rendering
* Add options for Custom Geometry Source types to enable clipping and wrapping ↵Asheem Mamoowala2018-02-072-0/+22
| | | | geometry (#11041)
* [core] prioritize Thread::pause() callsKonstantin Käfer2018-02-062-11/+34
|
* [core] change RunLoop processing to check queue on every iterationKonstantin Käfer2018-02-061-6/+7
|
* [core] factor out RunLoop::wake()Konstantin Käfer2018-02-061-4/+8
|
* [core] use the RunLoop's schedule call directlyKonstantin Käfer2018-02-061-18/+1
| | | | RunLoop already has a queue, and has the ability to schedule weak mailboxes, so we can remove the duplicate code.
* Reimplement style values atop NSExpression (#10726)Minh Nguyễn2018-01-246-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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
|
* [core, ios, macos, android] Add data-driven-styling support for `text-font`John Firebaugh2018-01-1022-22/+94
|
* [core] Handle NaN input to interpolate and stepJohn Firebaugh2018-01-101-3/+9
|
* [core] Omit inferred type annotations for 'coalesce' argumentsJohn Firebaugh2018-01-091-3/+10
|
* [core] Improve typing for !=, == expressionsJohn Firebaugh2018-01-091-0/+31
|
* [windows][core] Add std::tuple replacement for WindowsThiago Marcos P. Santos2018-01-082-5/+24
| | | | Windows STL + Clang can't build our IndexedTuple class.
* [windows][core] Add missing != operator to TilesetThiago Marcos P. Santos2018-01-081-0/+4
|
* [windows][core] Include what you useThiago Marcos P. Santos2018-01-081-0/+1
|
* Support TileJSON bounds property (#10701)Asheem Mamoowala2018-01-053-79/+16
| | | | | | | | * [core] Parse TileJSON bounds property * [core] Add TileRange and LatLngBounds::contains(CanonicalTileID) Move LatLngBounds::contains impl to cpp file * [core] Skip tile creation outside of tileset bounds * [core] Fix TileRange for wrapped bounds and use for CustomTileLoader instead of LatLngBounds comparisons for tiles.
* [core] Fix copy in range-based for loopsJason Wray2017-12-152-2/+2
| | | | Caught by `CLANG_WARN_RANGE_LOOP_ANALYSIS = YES`.
* [ios,macos] Darwin implementation of a CoreText-based LocalGlyphRasterizer.Chris Loer2017-12-111-1/+2
| | | | | - Changing font weight does not currently appear to be working. - Glyph metric extraction code not working; currently unused.
* [core] Support wrapped bounds in LatLngBounds::contains and ↵Asheem Mamoowala2017-12-071-15/+74
| | | | LatLngBounds::intersect.
* [build] standardize on -fvisibility=hidden for all targetsKonstantin Käfer2017-11-291-5/+10
| | | | | | | Enables -fvisibility=hidden for iOS and Linux, and adds a workaround for GCC 6.3-7.1 Adds a GCC 6 build Enables diagnostics for C files Fixes a shadow warning in parsedate.c
* [core] move HeadlessBackend extension initialization code into ImplKonstantin Käfer2017-11-291-1/+1
|
* [core, ios, macos] Implement unique_any and remove linb::anyAsheem Mamoowala2017-11-224-14/+279
|
* [core] Use Actors for CustomTileLoader invocation from bindings.Asheem Mamoowala2017-11-221-3/+3
|
* [core] Custom Geometry SourcesAsheem Mamoowala2017-11-224-1/+124
|
* [core] Cleanup in response to review comments.Chris Loer2017-11-171-3/+3
|
* [core] Split MapMode::Still into Static and TileAnsis Brammanis2017-11-171-1/+2
| | | | | `Tile` makes sure the symbols in the resulting tile are tileable while symbols in `Still` match rendering in `Continuous` mode.
* [build] Clang-3.8: Explicit mbgl::style::expression::Result default ctorBruno de Oliveira Abinader2017-11-141-0/+4
|
* [build] Clang-3.8: Default init of a const type requires user-provided ctorBruno de Oliveira Abinader2017-11-141-8/+8
|
* [core] Fix build on Android + GCC and Android + armeabiThiago Marcos P. Santos2017-11-123-3/+13
| | | | Sadly we don't have bots for these two setups.
* Merge branch 'release-agua' into tvn-merge-releaseTobrun2017-11-101-0/+2
|\
| * [ios, macos] Add selection support to MGLMultiPoint annotations. (#9984)Fabian Guerra Soto2017-10-181-0/+2
| | | | | | | | | | | | * [ios, macos] Add selection support to MGLMultiPoint annotations. * [ios, macos] Update changelogs.
| * [core] make forcing cache/network only more explicitKonstantin Käfer2017-10-124-11/+55
| | | | | | | | | | | | Previously, we used the existence of a `prior*` field in the Resource object as an indication for whether we should consult the cache or not. However, this is prone to error, since a failed cache lookup won't set any prior fields. Therefore, we manually set `priorExpires` to 0. This in turn triggered another bug where generated wrong expiration timestamps when the server response we got was expired (or expired between sending and receiving). This commit changes the flags so that we can now explicitly request CacheOnly/NetworkOnly (or All) loading methods, rather than the implicit Optional/Required naming scheme.
| * [core] Add `cameraForLatLngs()` method with modified bearingAsheem Mamoowala2017-10-092-3/+11
| |
* | Implement Expressions (#9439)Anand Thakker2017-11-0833-101/+2087
| | | | | | Ports https://github.com/mapbox/mapbox-gl-js/pull/4777 (and its several follow-ups)
* | [core] Move GLContextMode to its own Renderer headerBruno de Oliveira Abinader2017-11-013-10/+19
| |
* | [gcc4.9] Keep compatibility with GCC + AndroidThiago Marcos P. Santos2017-10-311-2/+2
| | | | | | | | Needed by Qt builds on Android.
* | [core] Add LatLngBounds::contains(const LatLngBounds&)Asheem Mamoowala2017-10-301-0/+7
| |
* | Replace compile-time polymorphism with runtime polymorphism in the ↵John Firebaugh2017-10-2319-1402/+291
| | | | | | | | conversion system
* | [core] Move SourceType to the 'style' namespaceAnand Thakker2017-10-162-6/+6
| |
* | [core, node] Support axonometric renderingLauren Budorick2017-10-141-0/+8
| |