Gali Nelle
9a55c282fe
Add LocationIndicatorLayer
...
New key is "G" in mbgl-glfw, cycling between no puck, centered
in the viewport and positioned in Tokyo.
2020-04-08 14:00:26 +03:00
Mikhail Pozdnyakov
7f53cec17b
Add change log entry
2020-04-08 11:19:37 +03:00
Mikhail Pozdnyakov
39cdbb63c6
Update render tests expectations
2020-04-08 11:19:37 +03:00
Mikhail Pozdnyakov
fd218daa00
[core][tile mode] Fix placement mismatch for the labels with same geomerty
2020-04-08 11:19:37 +03:00
Mikhail Pozdnyakov
88337c23f7
[core][tile mode] Improve placement algorithm for variable labels
2020-04-08 11:19:37 +03:00
Mikhail Pozdnyakov
8165b7dee1
[core][tile mode] Placement algorithm improvements
...
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.
2020-04-08 11:19:37 +03:00
Mikhail Pozdnyakov
e6bac0eb9f
[core] Symbol by symbol placement for intersections
2020-04-08 11:19:37 +03:00
Mikhail Pozdnyakov
a32672b9e6
[core] Introduce PlacementContext
...
Make `placeSymbol()` a method and introduce copiable `PlacementContext`.
2020-04-08 11:19:37 +03:00
Thiago Marcos P. Santos
42dc1e997f
[test] Rename deprecated gtest method
...
The old name was marked as deprecated and failing to build with clang.
2020-04-08 02:07:38 +03:00
Thiago Marcos P. Santos
e3485c2df1
[build] Bump googletest to 1.10.0
...
Reason: gmock supports better syntax for defining mock methods.
2020-04-08 02:07:38 +03:00
zmiao
bf4c7340f3
[build] Fix undefined behavour sanitizer ( #16375 )
...
* [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
2020-04-07 16:30:30 +03:00
Mikhail Pozdnyakov
8986b558eb
[render tests][tile mode] Check symbol icons cut-offs
2020-04-06 19:18:06 +03:00
Mikhail Pozdnyakov
b2ab0804f8
[render tests][tile mode] Enable automatic labels cut-off detection
2020-04-06 19:18:06 +03:00
Thiago Marcos P. Santos
c829ea7e92
[build] Add option to disable -Werror
...
mkdir build && cd build && cmake .. -DMBGL_WITH_WERROR=OFF
2020-04-06 18:18:17 +03:00
Mikko Pulkki
d0c103fa8f
Refactor tileCover to support lod tiles
2020-04-06 12:10:21 +03:00
Igor Tarasov
69dc210598
[android] Remove forgotten JNI bindgings from android platform. ( #16374 )
...
Cleanup after PR #16356 .
2020-04-03 12:56:03 +03:00
Juha Alanen
bb9e6c5aaf
Update change log for the maps-v1.5.1 release
2020-04-03 12:20:11 +03:00
Igor Tarasov
338cfd1b33
[android] [build] [ci] Move Android JNI bindings code to mapbox-gl-native-android repo. ( #16356 )
2020-04-02 18:36:55 +03:00
Thiago Marcos P. Santos
b7728d222c
[build] Make the docker image smaller
...
It could be made even smaller by splitting Android and Linux
builds, but so far CircleCI is handling it fine.
2020-04-02 13:11:41 +03:00
Mikhail Pozdnyakov
7d26a16489
Add change log entry
2020-04-02 11:50:52 +03:00
Mikhail Pozdnyakov
57cd47b2fc
Add Map.PlacedSymbolData unit test
2020-04-02 11:50:52 +03:00
Mikhail Pozdnyakov
c3b68fe91b
[core] PlacedSymbolData includes viewport padding
2020-04-02 11:50:52 +03:00
Mikhail Pozdnyakov
3412331e4a
[core][tile mode] Implement API to collect placed symbols data
2020-04-02 11:50:52 +03:00
Mikhail Pozdnyakov
5f4e33b1a3
[core] Introduce API to collect placed symbols data
...
The following methods are added to the `Renderer` class:
- `collectPlacedSymbolData()`
enables or disables collecting of the placed symbols data
- `getPlacedSymbolsData()`
if collecting of the placed symbols data is enabled, returns the
reference to the `PlacedSymbolData` vector holding the collected data.
2020-04-02 11:50:52 +03:00
Alexander Shalamov
4bdb3ce200
Update changelog
2020-04-01 16:18:55 -04:00
Alexander Shalamov
f3e9c4733a
[core] Add unit tests
2020-04-01 16:18:55 -04:00
Alexander Shalamov
ca1ae7604c
[android] Add Android bindings
2020-04-01 16:18:55 -04:00
Alexander Shalamov
15f73a06f2
[core] Add setMaxOverscaleFactorForParentTiles
2020-04-01 16:18:55 -04:00
Thiago Marcos P. Santos
09f7bbcf7c
[build] Cascade some bots so we trigger less jobs
...
Now that we have clang-tidy with more checks enable,
make sure the code is tidy before we can move forward
with the pipeline.
Also cascade macOS bots, which are way slower after
basic compilation is done on Linux.
2020-04-01 20:34:21 +03:00
Alexander Shalamov
bd5932a964
Update changelog
2020-04-01 18:21:04 +03:00
Aleksandar Stojiljkovic
881d5dab6a
Hillshade bucket fix https://github.com/mapbox/mapbox-gl-native-ios/issues/240
...
Fixes: https://github.com/mapbox/mapbox-gl-native-ios/issues/240
2020-04-01 18:21:04 +03:00
Thiago Marcos P. Santos
9de0bacf7d
[build] Remove misc-non-private-member-variables-in-classes check
...
It is warning about protected members which are not a big deal.
2020-04-01 14:41:23 +03:00
Juha Alanen
09a5ee2d8b
Update changelog
2020-04-01 11:17:43 +03:00
Juha Alanen
4daa6baa20
[test] Disable logging thread
...
some tests are counting the number of logs to determine pass/fail
so disable separate logging thread for them.
2020-04-01 11:17:43 +03:00
Juha Alanen
a67aaca56b
[core] Move logging off the main thread
2020-04-01 11:17:43 +03:00
Thiago Marcos P. Santos
349c6153de
[build] Disable clang-format for generated code ( #16358 )
...
The code should be human readable but it is more important
if the code in the generator itself is easier to understand.
Nobody wants to play clang-format golf with these generators.
2020-03-31 22:48:56 +03:00
Thiago Marcos P. Santos
9e189e02b4
[darwin] Remove debug leftover
...
Remove debug leftover added by 9009089a93 .
2020-03-31 01:59:41 +03:00
Thiago Marcos P. Santos
fc29ddc6c2
[build] Make the code tidy!
...
Now the bot will fail when clang-tidy fails. All warnings are fatal.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
1c5e0ee31e
[core] Fix misc-* errors
...
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
94d1c10727
[core] Fix readability-* errors
...
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
2ca3fc24a1
[core] Fix bugprone-string-integer-assignment errors
...
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
31975e6083
[core] Fix bugprone-integer-division errors
...
As reported by clang-tidy-8.too_small
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
879a906efa
[core] Fix bugprone-virtual-near-miss errors
...
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
ea19e817c0
[core] Fix bugprone-exception-escape errors
...
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
0f235ac6d5
[core] Fix bugprone-macro-parentheses errors
...
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
5bb7ebd7de
[core] Fix bugprone-move-forwarding-reference errors
...
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
b4e9c0bd11
[core] Fix bugprone-too-small-loop-variable errors
...
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
31338c5d88
[core] Fix google-readability-casting errors
...
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
4362e27ab2
[core] Fix google-explicit-constructor errors
...
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
7f422e8696
[core] Fix google-build-explicit-make-pair errors
...
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00