summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [core] Fix querying for annotations near tile boundaries at high zoom.Chris Loer2018-08-141-1/+7
| | | | | | | | Fixes issue #12472. This commit doesn't address the underlying issues that come from symbolAnnotationTree using a slightly lower precision coordinate system than the annotations themselves. Instead, it just puts a small padding around each tile when it queries for tile data, so that symbols right at the tile boundary will be included in both tiles. The rendering/querying code will take care of only displaying one instance. The padding is in global coordinates, so at higher zoom the padding will be larger in tile units -- this is consistent with precision loss also being greater at higher zoom.
* [core] Fix out of range exception for string compareVladimir Kondrashov2018-08-141-2/+2
|
* [core] Don't default-show text/icons that depend on the placement of a ↵Chris Loer2018-08-131-2/+9
| | | | | | paired icon/text Fixes issue #12483.
* [core] Factor out setVisibility conversionJohn Firebaugh2018-08-1311-130/+29
|
* [core] Optimize generated set{Paint,Layout}Property codeJohn Firebaugh2018-08-1313-1292/+2260
|
* [core] Eliminate setProperty & co.John Firebaugh2018-08-1316-381/+2313
|
* [core] Fix build when building Qt Location plugin for AndroidSudarsana Babu Nagineni2018-08-102-2/+3
| | | | | | | - log2 is not available on Android before API 18. - Android doesn't have 'round' on the std:: namespace when using g++. Co-authored-by: Thiago Marcos P. Santos <thiago@mapbox.com>
* Revert "[core] Replace Boost.Spirit with std::regex in CacheControl::parse()"Bruno de Oliveira Abinader2018-08-081-7/+21
| | | | This reverts commit 990b3b11b9427ffd86f693d3f4c3dd351891e5d0.
* [core] Use correct Log::record overload. (#12571)Chris Loer2018-08-081-1/+1
|
* [core] Replace Boost.Spirit with std::regex in CacheControl::parse()Bruno de Oliveira Abinader2018-08-081-21/+7
|
* [core] Replace remaining dynamic_cast with static_castBruno de Oliveira Abinader2018-08-0814-15/+30
|
* [core] Add lineMetrics to GeoJSONOptionsMikhail Pozdnyakov2018-08-082-0/+11
| | | | | 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-072-4/+4
| | | | | More generic name as the same class member is to be used by the linear gradient properties.
* [core] support windows compilation with msvc2017 and clang 6Ivo van Dongen2018-08-071-0/+2
|
* Fix TileJSON conversion to allow single point boundsAsheem Mamoowala2018-08-021-2/+2
|
* [core] don't prefetch tiles for geojson sources (#12529)Molly Lloyd2018-08-021-1/+1
|
* 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] Merge DataDrivenPropertyValue into PropertyValue (#12513)John Firebaugh2018-07-3118-326/+309
|
* [core] update parse_date from cURL 7.61.0Konstantin Käfer2018-07-312-108/+100
|
* [core] Tweak conversions to reduce binary sizeJohn Firebaugh2018-07-3014-292/+409
| | | | | * return {} → return nullopt * error = { "..." } → error.message = "..."
* [core] Simplify CompoundExpression implementationJohn Firebaugh2018-07-304-55/+110
|
* [core] Avoid unnecessary template instantiationsJohn Firebaugh2018-07-301-32/+23
|
* Remove use of noncopyable in ContextSudarsana Babu Nagineni2018-07-301-1/+3
|
* Fix compilation errors with libc++ on QNX 7Sudarsana Babu Nagineni2018-07-304-23/+23
| | | | | | | | | | 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] Compress all shader source as a single corpusJohn Firebaugh2018-07-2527-3675/+1554
|
* [core] Compress shader source codeJohn Firebaugh2018-07-2525-2854/+3675
|
* [core] Use hand-rolled RTTIJohn Firebaugh2018-07-2428-26/+104
|
* [core] Check all bucket dynamic_castsJohn Firebaugh2018-07-2410-34/+70
| | | | A mismatch can occur when a layer changes from one type to another.
* [core] Replace expressions RTTI with enums + static castBruno de Oliveira Abinader2018-07-2414-37/+70
|
* [core] coveredByChildren is false if at least one child is uncoveredBruno de Oliveira Abinader2018-07-241-4/+12
|
* [core] Add `symbol-placement: line-center`Chris Loer2018-07-2310-46/+112
| | | | | - 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-1/+20
|
* [core] Convert token strings to expressionsJohn Firebaugh2018-07-208-63/+98
|
* [core] Move expression.cpp to expression directoryJohn Firebaugh2018-07-201-0/+0
|
* [core] Replace {Source,Camera,Composite}Function with PropertyExpressionJohn Firebaugh2018-07-2012-259/+216
|
* fixed typo in error messageJustyna Janczyszyn2018-07-191-1/+1
|
* Add fuzz tests for TileCover and fix out of bounds access crash.Asheem Mamoowala2018-07-161-0/+2
|
* Better describe the streaming tilecover algorithm in commentsAsheem Mamoowala2018-07-162-22/+57
|
* Fix TileCover asserts. The create_bounds_towards_* methods were treatingAsheem Mamoowala2018-07-161-49/+19
| | | | | all point arrays as rings. Simplify the logic to only compare against the next pt in the bound.
* [core] treat parsedate as C++ file to remove C build rulesKonstantin Käfer2018-07-163-3/+3
| | | | It is already wrapped with #ifdef __cplusplus extern "C", so we can safely compile it as C++ but retain C linkage
* [core] Convert legacy functions directly to expressionsJohn Firebaugh2018-07-135-170/+708
|
* [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] Comparison expressions can have 4th memberMinh Nguyễn2018-07-091-1/+1
| | | | When detecting an expression used as a filter, relax the check for expressions to allow comparison expressions to contain a fourth member for the collator.
* [core] Only update collision debug data if debug mode is onChris Loer2018-07-051-15/+27
| | | | Fixes issue #12294: unused debug vertices would pile up in buckets over course of tile's lifetime.
* Rename `HeatmapColorPropertyValue` to `ColorRampPropertyValue`Mikhail Pozdnyakov2018-07-057-16/+21
| | | | | | | | 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] Fix sort order for queryRenderedFeatures when features are filtered.Chris Loer2018-07-035-21/+21
| | | | Fixes issue #12104.
* [core] Avoid blocking in Thread<Object> constructor (#12151)Anand Thakker2018-07-036-15/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduce AspiringActor, EstablishedActor This pair of objects represents the two-phase (parent-thread / child-thread) construction that's needed to support constructing Thread<Object> without blocking until the child thread is up and running. An `AspiringActor<O>` is responsible for: - ownership of the actor's `Mailbox` - allocating the memory for (but *not* constructing) the target object `O` Using these two pieces--the mailbox and a stable address for `O`--an `AspiringActor<O>` can accept messages for the target object, or provide `ActorRef<O>`s that do so, before the object has actually been constructed by the corresponding `EstablishedActor<O>`. (Such messages are queued in the mailbox until after the object is constructed.) This allows for an `AspiringActor<O>` to be created and safely used by a thread other than the one on which the target object will (eventually) live. An `EstablishedActor<O>` is responsible for managing the lifetime of the target object `O` and the open/closed state of the parent's `mailbox`. The `O` object's lifetime is contained by that of its owning `EstablishedActor<O>`: the `EstablishedActor` constructor executes the `O` constructor via "placement new", constructing it at the address provided by the parent `AspiringActor`, and the `~EstablishedActor` destructor similarly executes the `~O` destructor (after closing the mailbox). `EstablishedActor` should therefore live entirely on the thread intended to own `O`. * Remove Actor#{invoke,ask}
* [core] Introduce "collator" expressionsChris Loer2018-07-037-14/+199
| | | | Cross platform parsing and evaluation code.
* [core] Introduce LanguageTag for parsing BCP 47 tagsChris Loer2018-07-032-0/+281
|
* Add pitch argument to cameraThatFits functions (#12213)Bobby Sudekum2018-07-021-13/+24
|