Commit Graph

16897 Commits

Author SHA1 Message Date
Minh Nguyễn
1b4c422c5c [ios, macos] Added offline pack context setter
Set the offline pack’s associated metadata, then replace the offline pack’s underlying offline region based on a fresh reload, without touching the master array of offline packs.
2020-04-30 16:34:41 -07:00
Minh Nguyễn
e780d13a7e [ios, macos] Reworded a sentence for clarity 2020-04-30 16:34:19 -07:00
Minh Nguyễn
bf91ad4994 [ios, macos] Customizing Fonts guide
Split out a guide about customizing fonts, covering both server-side and client-side fonts.
2020-04-30 16:34:19 -07:00
Chloe Krawczyk
0e44981d20 finalize 9.2.0-beta.1 changelog (#364) 2020-04-30 13:35:58 -07:00
Chloe Krawczyk
8525620fea Add SDK license file to script and generate new license (#363) 2020-04-30 12:55:11 -07:00
Kevin Li
8625168ea6 Update changelog for 9.2.0-beta.1 (#359)
Co-authored-by: Chloe Krawczyk <chloe.krawczyk@mapbox.com>
2020-04-30 12:07:58 -07:00
Fabian Guerra Soto
76f58c5385 Fix root.plist flag conversion. (#288)
* Fix root.plist flag conversion.

* Update changelog.
2020-04-30 13:54:31 -05:00
Łukasz Paczos
77ea09e364 bump gestures library to v0.7.0 2020-04-30 16:51:45 +02:00
Łukasz Paczos
f387da9309 Expose LocationComponentOptions#trackingMultiFingerProtectedMoveArea
This option provides a way of defining a protected area on the screen which prevents breaking the camera location when executing a multi finger gesture as long as the focal point of the gesture is within this area.
2020-04-30 16:51:45 +02:00
Łukasz Paczos
9ae33ea9cc notify about a fling only when it actually executes
This makes sure that we need to meet all of the thresholds and actually start the fling camera animation before dispatching the onFLing event. Previously, it would be dispatched as soon as the compat detector fired.
2020-04-30 16:51:45 +02:00
Gali Nelle
d60fd302b1 Update changelog for the maps-1.6.0 release 2020-04-30 17:27:00 +03:00
Alexander Shalamov
30b4e57828 [core] Fix rest of 'brace initialization' errors 2020-04-30 14:09:58 +03:00
zmiao
0ed719e0d6 [core] Fix geometry_util compilation error 2020-04-30 14:09:58 +03:00
Langston Smith
9bfe77df40 Adding pulsing circle to LocationComponent options (#172)
* [location] added pulsing locationcomponent circle

* adjusting style switching to roll through all styles

* refactored methods and variables for prefix continuity

* refactoring to after making start and stop private methods

* refactoring to stop pulsing when LocationComponent is disabled and color/speed is then selected

* refactoring to swap interpolator string paramete for interpolator interface parameter

* LocationLayerControllerTest adjustments

* removing unneeded test

* more rebase adjustments

* [location] added pulsing locationcomponent circle

* refactoring to swap interpolator string paramete for interpolator interface parameter

* consolidating pulse ui update methods

* gl-native vendor bump

* refactor to check for activation with locationcomponent

* Update MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentOptions.java

Co-Authored-By: Łukasz Paczos <lukasz.paczos@mapbox.com>

* Update MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponent.java

Co-Authored-By: Łukasz Paczos <lukasz.paczos@mapbox.com>

* Update MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentOptions.java

Co-Authored-By: Łukasz Paczos <lukasz.paczos@mapbox.com>

* Update MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentOptions.java

Co-Authored-By: Łukasz Paczos <lukasz.paczos@mapbox.com>

* Update MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentOptions.java

Co-Authored-By: Łukasz Paczos <lukasz.paczos@mapbox.com>

* Added incompatibility docs

* Added pulse alpha range explanation

* Do not wrap pulsing circle animator with an animator set to avoid leaks

Co-authored-by: Łukasz Paczos <lukasz.paczos@mapbox.com>
2020-04-30 12:28:36 +02:00
Jordan Kiley
be37d804b6 [darwin] remove accountType check (#16449) 2020-04-30 01:34:53 -07:00
zmiao
296ca0d437 Update changelog 2020-04-30 02:31:15 +03:00
zmiao
f8d137a0c5 Update baseline 2020-04-30 02:31:15 +03:00
zmiao
23b6268a04 [core] Distance expression: Refine logic 2020-04-30 02:31:15 +03:00
zmiao
70fbc97e58 [test] Distance expression: Update unit tests 2020-04-30 02:31:15 +03:00
zmiao
0fa485092e Add support for polygon in distance expression 2020-04-30 02:31:15 +03:00
Chloe Krawczyk
4908bc1de7 update license file (#285) 2020-04-29 12:15:42 -07:00
Kevin Li
6fd498ed16 Add set and get api for volatile and minimumTileUpdateInterval in Source (#355)
* Add set and get api for Volatile and minimumTileUpdateInterval in Source

* Format codes.
2020-04-29 20:49:35 +08:00
Kevin Li
859f64f97e Remove unit param for expression distance. (#352) 2020-04-29 15:57:25 +08:00
zmiao
4a54da881f [core] Distance expression: Remove code and comments related to unit argument 2020-04-28 23:10:04 +03:00
Mikhail Pozdnyakov
af14e1d510 Add change log entry 2020-04-28 20:50:18 +03:00
Mikhail Pozdnyakov
f21468b73a Update baselines 2020-04-28 20:50:18 +03:00
Mikhail Pozdnyakov
b84449e35f [core][tile mode] Further improve the label prioritization
The most important variable labels a placed right away at
"populate intersections" phase, even if they do not actually
intersect the tile borders.
2020-04-28 20:50:18 +03:00
Mikhail Pozdnyakov
2bf1610e6c [core][tile mode] Fix placement order of the variable labels
Before this change, all variable labels that could potentially
intersect tile borders were placed first, breaking the style
label placement priority order.
2020-04-28 20:50:18 +03:00
Mikhail Pozdnyakov
e44598704d [core] Label intersection prioritization 2020-04-28 20:50:18 +03:00
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