Commit Graph

16768 Commits

Author SHA1 Message Date
Kevin Li
7ca1bcf821 Fix onStyleImageMissing not fired in Snapshotter (#317)
* Modify example to trigger OnStyleMissing callback

* Fix onStyleImageMissing callback not works in snapshotter.

* Update gl-native

* Update doc

* Fix android check
2020-04-14 17:58:23 +08:00
Łukasz Paczos
f79334c124 when removing an image use the correct list ptr for presence verification
This fixes an issues where calling `removeImage` would crash if the image was not present and the original list was not empty.
2020-04-10 16:55:17 +02:00
Kevin Li
414e155af3 Not rebuild all files (#318) 2020-04-10 21:31:32 +08:00
Kevin Li
be9ca95e9a [android] Fix onStyleImageMissing callback in Snapshotter not fired issue. (#16386) 2020-04-10 18:13:57 +08:00
Gali Nelle
209857f8ac Fix LocationIndicator Layer
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.
2020-04-10 00:15:43 +03:00
Mikhail Pozdnyakov
e6c156420d [core] PlacedSymbolData contains layer id 2020-04-09 17:18:21 +03:00
Mikhail Pozdnyakov
718dd295ab Add change log entry 2020-04-08 17:00:21 +03:00
Mikhail Pozdnyakov
5a9fa44d55 [core][tile mode] Support variable placement + icon-text-fit 2020-04-08 17:00:21 +03:00
Gali Nelle
fe9ba477a8 Update baselines after addition of Location Indicator layer 2020-04-08 14:00:26 +03:00
Gali Nelle
cd91664935 Add unit tests for Rotation interpolator 2020-04-08 14:00:26 +03:00
Gali Nelle
8e581c88ea Make location indicator bearing a paint property
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.
2020-04-08 14:00:26 +03:00
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
Minh Nguyễn
23b5b46cd4 ios-v5.8.0, macos-v0.15.0 2020-04-07 12:57:33 -07:00
Minh Nguyễn
21b4d70895 [macos] Adopt Apple Generic Versioning 2020-04-07 12:56:52 -07:00
Minh Nguyễn
64f0a54d7f [ios, macos] Initialize offline storage on main thread before snapshotting 2020-04-07 12:00:36 -07:00
Minh Nguyễn
69ddd88512 mbgl v1.5.1 2020-04-07 09:44:00 -07: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
Kevin Li
f27b16562d Update change log for 9.1.0 (#309)
* Update change log for 9.1.0

* Update changelog
2020-04-07 14:35:39 +08:00
Minh Nguyễn
928f37f1f3 [ios, macos] Fixed unit test compilation error
Read and discard the local variable value to suppress the error. This variable is only a behind-the-scenes stand-in for an instance property.
2020-04-06 13:46:16 -07: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
Kevin Li
cedd2afecc Add log for canceled request. (#304) 2020-04-03 16:32:51 +08:00
Kevin Li
4fcae9e2bb Make mapview unable to intercept scroll event. (#308) 2020-04-03 16:32:02 +08:00
Minh Nguyễn
93890681af [ios] Embed MapboxMobileEvents.framework in iosapp 2020-04-02 17:33:34 -07:00
Igor Tarasov
daecbed823 Move JNI bindings code from mapbox-gl-native to this repo. (#301) 2020-04-02 19:45:56 +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
Minh Nguyễn
1a9ab40801 [ios] Avoid removing annotations from torn-down map
If the underlying mbgl::Map has been torn down, so has the mbgl annotation, so don’t worry about the mbgl::Map but keep unregistering KVO and other SDK-side annotation resources.
2020-04-02 07:42:30 -07:00
Minh Nguyễn
74f5a64035 [ios, macos] Wrap map in unique pointer
Also removed unused method declarations.
2020-04-02 07:42:30 -07:00
Pablo Guardiola
620bda356c fix proguard telemetry events rule (#306) 2020-04-02 09:33:55 -04: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