summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [core] Introduce distance expressionzmiao2020-04-228-175/+789
| | | | | | | | | | | | | | | | | | Add distance unit choices Fix cmake and add license Add support for LineString Features Add template to geometry helper function Only support line and point Rename geometry_within.cpp hpp file to geometry_util.cpp .hpp Remove incorrect indexFilter, fix pointSetsDistance Fix distance expression
* [core] Tile pyramid passes minimum update interval to tilesMikhail Pozdnyakov2020-04-201-7/+6
|
* [core] TilePyramid::update accepts source implMikhail Pozdnyakov2020-04-208-67/+53
|
* [core] Introduce Source::setMinimumTileUpdateInterval APIMikhail Pozdnyakov2020-04-203-3/+21
| | | | | | The `Source::setMinimumTileUpdateInterval()` method sets the minimum tile update interval, which is used to throttle the tile update network requests. Default value is `Duration::zero()`.
* [core] Introduce Tile::setMinimumUpdateInterval()Mikhail Pozdnyakov2020-04-209-13/+51
|
* [core] Introduce `Resource::minimumUpdateInterval`Mikhail Pozdnyakov2020-04-201-3/+3
| | | | | | Introduce `Resource::minimumUpdateInterval` and consider it in the online file source. The `minimumUpdateInterval` is used to throttle the requests, which were initiated due to resource expiration.
* [core] Add platform abstractions for utils::now()Thiago Marcos P. Santos2020-04-201-1/+2
| | | | | Some platforms might require special permissions or custom APIs to access the current time of the day.
* [core] Fix -Werror={pessimizing,redundant}-move from GCC 9Bruno de Oliveira Abinader2020-04-204-7/+4
|
* Add a name to CustomLayer LayerTypeInfoGali Nelle2020-04-201-1/+1
| | | | | | This to prevent confusion and enable proper error logging when registering layers with missing name in LayerTypeInfo where the name should instead be present.
* Add missing cast for unsigned long to int conversionGali Nelle2020-04-201-2/+2
|
* [core] Fix clang-analyzer-optin.cplusplus.VirtualCallThiago Marcos P. Santos2020-04-171-4/+6
| | | | Detected by clang-tidy-8.
* [core] Fix android-cloexec-fopen warningThiago Marcos P. Santos2020-04-171-1/+1
| | | | Detected by clang-tidy-8.
* Introduce a mean to add render features in layers with no sourcesGali Nelle2020-04-176-11/+122
| | | | | | This change also uses the support in the LocationIndicator layer, to return a point feature when queried in correspondence of the location indicator.
* Use unique_ptr for RenderLocationIndicatorImplGali Nelle2020-04-172-2/+2
|
* Better structure fix.Luke Seelenbinder2020-04-171-4/+4
|
* Fix segfault resulting from an invalid geometry.Luke Seelenbinder2020-04-171-2/+5
|
* [core] Fix performance-no-automatic-move (bonus)Thiago Marcos P. Santos2020-04-173-4/+4
| | | | | | As reported by clang-tidy-10. We don't run clang-tidy-10 yet. We should probably consider moving the bots at some point so errors like this won't return.
* [core] Fix performance-noexcept-move-constructor in header filesThiago Marcos P. Santos2020-04-174-5/+8
| | | | As reported by clang-tidy-8.
* [core] Fix performance-unnecessary-value-param errors in header filesThiago Marcos P. Santos2020-04-176-6/+9
| | | | As reported by clang-tidy-8.
* [core] Fix modernize-use-equals-default errors in header filesThiago Marcos P. Santos2020-04-172-3/+3
| | | | As reported by clang-tidy-8.
* [core] Fix google-default-arguments errors in header filesThiago Marcos P. Santos2020-04-173-6/+6
| | | | As reported by clang-tidy-8.
* [core] Fix misc-unconventional-assign-operator errors in header filesThiago Marcos P. Santos2020-04-172-2/+6
| | | | As reported by clang-tidy-8.
* [core] Fix google-build-namespaces errors in header filesThiago Marcos P. Santos2020-04-173-12/+2
| | | | As reported by clang-tidy-8.
* [core] Fix modernize-use-override errors in header filesThiago Marcos P. Santos2020-04-175-5/+5
| | | | As reported by clang-tidy-8.
* [core] Fix performance-type-promotion-in-math-fn errors in header filesThiago Marcos P. Santos2020-04-173-10/+15
| | | | As reported by clang-tidy-8.
* [core] Fix modernize-return-braced-init-list errors in header filesThiago Marcos P. Santos2020-04-173-3/+3
| | | | As reported by clang-tidy-8.
* [core] Fix performance-unnecessary-value-param errors in header filesThiago Marcos P. Santos2020-04-172-6/+3
| | | | As reported by clang-tidy-8.
* [core] Fix performance-move-const-arg errors in header filesThiago Marcos P. Santos2020-04-171-2/+2
| | | | As reported by clang-tidy-8.
* [core] Fix modernize-pass-by-value errors in header filesThiago Marcos P. Santos2020-04-173-11/+12
| | | | As reported by clang-tidy-8.
* [core] Fix bugprone-forward-declaration-namespace errors in header filesThiago Marcos P. Santos2020-04-171-4/+0
| | | | As reported by clang-tidy-8.
* [core] Fix performance-unnecessary-copy-initialization errors in header filesThiago Marcos P. Santos2020-04-171-2/+2
| | | | As reported by clang-tidy-8.
* [core] Fix readability-redundant-member-init errors in header filesThiago Marcos P. Santos2020-04-175-4/+6
| | | | As reported by clang-tidy-8.
* [core] Fix readability-avoid-const-params-in-decls errors in header filesThiago Marcos P. Santos2020-04-1739-201/+248
| | | | As reported by clang-tidy-8.
* Add generic setter for 'source' propertyAlexander Shalamov2020-04-161-1/+24
| | | | | - Add setter for 'source' property - Test generic setters via setProperty method
* Fix LocationIndicator not updating image sizes when image manager content ↵Gali Nelle2020-04-161-19/+27
| | | | changes
* [core] RenderCircleLayer fixesMikhail Pozdnyakov2020-04-141-68/+52
|
* [core] CircleLayout fixesMikhail Pozdnyakov2020-04-141-37/+33
|
* Enable 'circle-sort-key' layout propertyAndrew Hay Kurtz2020-04-1411-98/+337
|
* when removing an image use the correct list ptr for presence verificationŁukasz Paczos2020-04-101-1/+1
| | | | This fixes an issues where calling `removeImage` would crash if the image was not present and the original list was not empty.
* Fix LocationIndicator LayerGali Nelle2020-04-104-97/+151
| | | | | | | | | This changes image size properties to be scales instead of pixel sizes. The commit also adds fixes for handling image updates with the same ID, adds tests for expressions in paint properties, as well as tests for using images with pixel ratio greater than 1. Finally it moves image-tilt-displacement and perspective-compensation properties from layout to paint properties, and includes other minor cleanups.
* [core] PlacedSymbolData contains layer idMikhail Pozdnyakov2020-04-092-2/+6
|
* [core][tile mode] Support variable placement + icon-text-fitMikhail Pozdnyakov2020-04-081-1/+15
|
* Make location indicator bearing a paint propertyGali Nelle2020-04-087-36/+96
| | | | | | This change introduces a new property type, Rotation, that uses a custom interpolator, and that is currently applied to all style properties named "bearing", with a period attribute.
* Add LocationIndicatorLayerGali Nelle2020-04-0817-11/+1733
| | | | | New key is "G" in mbgl-glfw, cycling between no puck, centered in the viewport and positioned in Tokyo.
* [core][tile mode] Fix placement mismatch for the labels with same geomertyMikhail Pozdnyakov2020-04-081-2/+9
|
* [core][tile mode] Improve placement algorithm for variable labelsMikhail Pozdnyakov2020-04-082-17/+26
|
* [core][tile mode] Placement algorithm improvementsMikhail Pozdnyakov2020-04-083-29/+81
| | | | | | | | | | | Now, the intersecting symbols are placed across all layers according to the following rules: 1) First we look, which of the tile border(s) the symbol intersects and prioritize the the symbol accordingly (high priority -> low priority): vertical & horizontal -> vertical -> horizontal 2) For the symbols that intersect the same tile border(s), assuming the tile border split symbol into several sections, we look at the minimal section length. The symbol with a larger minimal section length is placed first. 3) Finally, for the symbols that intersect the same tile border(s), and have equal minimal section length, we look at the anchor Y cordinate.
* [core] Symbol by symbol placement for intersectionsMikhail Pozdnyakov2020-04-082-57/+70
|
* [core] Introduce PlacementContextMikhail Pozdnyakov2020-04-082-371/+434
| | | | Make `placeSymbol()` a method and introduce copiable `PlacementContext`.
* [build] Fix undefined behavour sanitizer (#16375)zmiao2020-04-0712-32/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [build] Fix integer overflow runtime error for core part Temporarily remove circle ci UBSAN build precondition * [build] Enable all of the ubsans [build] Check runtime error [build] Update UBSAN_OPTION * [build] Add UBSAN blacklist [build] Ignore system libraries [build] Ignore vendor library * [build] Fix implicit conversion runtime error in core * [build] Fix division by zero runtime error * [build] Add unfixed error to ubsan blacklist * [build] Make UBSAN halt on error Revert "Temporary remove build precondition" * [build] Fix division by zero error * [build] Make UBSAN officially work without FIXME prefix * [build] Fix implicit conversion from int64_t to uint64_t * [build] Rename style test json file name * Address review findings