Commit Graph

16768 Commits

Author SHA1 Message Date
Kevin Li
4e878d614d Update gralde configure to only build the target abi. (#341)
* Update gralde configure to only build the target abi.

* Fix sync project error.
2020-04-28 18:32:29 +08:00
Kevin Li
c77a49c15c Make onSnapshotFailed run on main thread. (#347) 2020-04-28 17:48:26 +08:00
Thiago Marcos P. Santos
34e475c3ac [build] Fix script that trigger downstream jobs
The API now replies with a 200 when the request is successful.
2020-04-28 11:51:06 +03:00
Kevin Li
847774712b Bump gl-native to maps-v1.6.0-rc.2 (#344) 2020-04-28 08:26:49 +08:00
Thiago Marcos P. Santos
0d77ec465a [repo] Update code owners
Require a member of the gl-native team to review a PR
2020-04-27 23:51:39 +03:00
Alexander Shalamov
4457f5ced9 Build default http stack if MBGL_PUBLIC_BUILD is set 2020-04-27 19:47:30 +03:00
Minh Nguyễn
42f425725b [ios] Updated changelog for v5.9.0-alpha.1 2020-04-24 20:04:09 -07:00
Minh Nguyễn
48963d0344 ios-v5.9.0-alpha.1, macos-v0.16.0-alpha.1 2020-04-24 19:54:04 -07:00
Minh Nguyễn
288194c904 [ios, macos] Added snapshot test of locally rendered font
Disabled on iOS for now due to actual differences in Core Text behavior. Disabled on macOS because the test is too strict without any tolerance.
2020-04-24 18:31:33 -07:00
Minh Nguyễn
50d067f4ad [ios, macos] Allow specifying multiple fonts or font families for local font rendering
Removed MGLIdeographicFontFamilyName validation from MGLRendererConfiguration, since mbgl::LocalGlyphRasterizer performs more robust validation. Removed C++ from MGLRendererConfiguration interface, implementation, and tests for simplicity.

Pass all the specified font and font family names into mbgl so that mbgl::LocalGlyphRasterizer can form a full font cascade list.
2020-04-24 18:31:29 -07:00
Minh Nguyễn
152d372b61 mbgl v1.6.0-rc.2 2020-04-24 18:25:31 -07:00
Minh Nguyễn
de12a0647d maps-v1.6.0-rc.2 (#16435) 2020-04-24 17:03:51 -07:00
zmiao
9bbb1b721e [core] Distance expression: remove unit argument (#16434) 2020-04-24 15:12:45 -07:00
ystsoi
47f1d7bb94 Fix an issue that the heading indicator does not rotate if Settings > Privacy > Location Services > System Services > Compass Calibration is off (#247)
* Fix an issue that the heading indicator does not rotate if Settings > Privacy > Location Services > System Services > Compass Calibration is off.

* Update CHANGELOG.md

Co-authored-by: Nishant Karajgikar <nishant-karajgikar@users.noreply.github.com>
Co-authored-by: Minh Nguyễn <mxn@1ec5.org>
2020-04-24 17:38:23 -04:00
Alexander Shalamov
0ccc9f2689 Add test for PingFang TC Semibold 2020-04-24 13:46:40 -07:00
Minh Nguyễn
61a91d7fe8 [ios, macos] Increased tolerance for local glyph rasterization test
Co-authored-by: Alexander Shalamov <alexander.shalamov@mapbox.com>
2020-04-24 13:46:40 -07:00
Minh Nguyễn
13de47db26 [ios, macos] Match only one font name attribute at a time 2020-04-24 13:46:40 -07:00
Minh Nguyễn
9548365904 [ios, macos] Added and updated documentation 2020-04-24 13:46:40 -07:00
Minh Nguyễn
0588c50b09 [ios, macos] Get glyph metrics from font
Get glyph metrics from the font in the process of drawing each glyph into a bitmap context. These metrics result in more accurate kerning and better aligned baselines than the previous hard-coded values.

Align iOS/macOS local glyph rasterization test fixture to Qt.
2020-04-24 13:46:40 -07:00
Minh Nguyễn
bcfdbd187d [ios, macos] Avoid redundant fallback in font cascade list
A font descriptor should not be a fallback for itself.
2020-04-24 13:46:40 -07:00
Minh Nguyễn
c4c35449cb [ios, macos] Choose fonts from font stack that match local fonts
Prefer local fonts that match the names specified in the font stack (from the text-font layout property), except for the last resort fonts that mbgl hard-codes. Fall back to the list of fallback CJK fonts in user defaults, then the fonts passed in through the platform-agnostic interface (that come from Info.plist). Explicitly use the first font descriptor in the cascade list instead of the system default of Helvetica.

Since the font stack can vary from one rasterization operation to the next, avoid caching the resolved font for now. Removed null checks that are unrealistic given the Core Text API contract.
2020-04-24 13:46:40 -07:00
Minh Nguyễn
76ddb15dbc [core] Factored out default fonts 2020-04-24 13:46:40 -07:00
Minh Nguyễn
9b78a156de [ios, macos] Take font family names from user defaults
Take font family names from user defaults before falling back to font family names in Info.plist.
2020-04-24 13:46:40 -07:00
Minh Nguyễn
f97ca0ccf9 [ios, macos] Allow specifying multiple fonts or font families for local font rendering
mbgl::Renderer and mbgl::MapSnapshotter can now contain a list of font family names, font display names, and font PostScript names, each name separated by a newline.
2020-04-24 13:46:40 -07:00
Minh Nguyễn
52d4c5e222 [ios, macos] Corrected PingFang test fixture
PingFangTC-Regular is better than PingFangTC-Thin. There is no font by the name “PingFang”.
2020-04-24 13:46:40 -07:00
Minh Nguyễn
f3da2d7053 [ios, macos] Only set snapshotter camera options if camera is valid 2020-04-24 10:41:07 -07:00
Minh Nguyễn
cb3d9eab49 [ios, macos] Fixed receiving local file URL response 2020-04-24 10:27:29 -07:00
Sudarsana Babu Nagineni
3542db4fd4 [build] Remove incorrect include path in tests CMake 2020-04-24 19:19:38 +03:00
Mikhail Pozdnyakov
8f8b7afb26 [render tests] Update tile-avoid-edges expectations
And other affected tests metrics too.
2020-04-24 16:11:46 +03:00
Mikhail Pozdnyakov
9ceb619940 [core][tile mode] Make sure only a single tile is used
In tile mode, we're supposed to have only one tile, which is achieved with provided camera options.

However, if camera options are not accurate enough more tile could be used, which could cause:

* various symbol placement problems like, symbol duplications or cut-offs
* memory/cpu overhead

Now, if `mbgl::tileCover()` returns several tiles, only the first one is used (given that tiles are sorted by the distance to the map center)
2020-04-24 16:11:46 +03:00
Kevin Li
5cee66a451 Add api and demo for expression distance (#339)
* Add api and demo for expression distance

* Update test case
2020-04-24 16:55:02 +08:00
Łukasz Paczos
161abf8326 clean up compass engine comments and duplication 2020-04-23 13:30:34 +02:00
Tsoi Yat Shing
6f6f146d69 Prevent bearing flipping in the cases of upside down and face down. 2020-04-23 13:30:34 +02:00
Tsoi Yat Shing
d230172b3c Fix code style and unit test issues for the compass fix. 2020-04-23 13:30:34 +02:00
Tsoi Yat Shing
e3b2452ba2 Update the heading, even if the sensor is unreliable.
This makes it possible to use a different indicator for the unreliable case, instead of just changing the RenderMode to NORMAL.
2020-04-23 13:30:34 +02:00
Tsoi Yat Shing
7bcc2d3282 Calculate the heading differently, depending on whether the device is placed horizontally or vertically.
The previous logic may return wrong heading when the device is placed horizontally.
2020-04-23 13:30:34 +02:00
Tsoi Yat Shing
928632ad43 Prevent dropping the TYPE_ACCELEROMETER and TYPE_MAGNETIC_FIELD sensor events, otherwise, only one sensor value is updated in each heading update.
Especially, there may be more TYPE_ACCELEROMETER events in some devices, such that TYPE_MAGNETIC_FIELD events could be dropped easily.
Also, it took longer time to reflect the latest heading if there are few events, due to the lowPassFilter.
2020-04-23 13:30:34 +02:00
Tsoi Yat Shing
7367a49de0 Remove the use of the deprecated TYPE_ORIENTATION sensor.
The compass engine has not adjusted the heading according to the device orientation. This causes wrong heading if the device is not in its normal orientation.
2020-04-23 13:30:34 +02:00
Mikko Pulkki
9f8c9c61e8 Add vec3 math operations 2020-04-23 10:53:57 +03:00
Bruno de Oliveira Abinader
1798bda981 Fix compilation issues on GCC 9 2020-04-22 21:36:00 +03:00
Mikhail Pozdnyakov
64c5b46d9e follow-up fixes after 16416 2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
c75342e1d2 Add change log entry 2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
d8639e2f9c [core] Database file source does not return stored tiles for volatile resources
The `DatabaseFileSource.VolatileResource` test is included.
2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
b120cdd207 Add Map.VolatileSource unit test 2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
dc7b1dd34f [core] Source::setVolatile enables Resource::StoragePolicy::Volatile for tiles 2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
11efffb351 [core] Add TileUpdateParameters and use it 2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
3bebd13d2e [core] Add Resource::StoragePolicy and consider it in resource loader 2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
eac6bdff16 [core] Add style::Source::setVolatile()/isVolatile() API 2020-04-22 19:21:56 +03:00
zmiao
7af1a175a3 Update changelog 2020-04-22 15:53:08 +03:00
zmiao
3a14e52f4c [core] Distance expression: Fix expression serialization 2020-04-22 15:53:08 +03:00