Commit Graph

15272 Commits

Author SHA1 Message Date
Minh Nguyễn
9c95ed9b99 Sentence-cased copyright notice 2020-05-01 15:53:42 -07:00
Minh Nguyễn
d63d14d1a0 mbgl v1.6.0 2020-05-01 15:53:42 -07:00
Minh Nguyễn
27eee6adf5 [ios, macos] Added distance expression function
Installed an mgl_distanceFrom: aftermarket expression function that corresponds to the “distance” expression operator in style JSON.
2020-05-01 12:40:16 -07:00
Minh Nguyễn
93141ac0f0 [ios, macos] Hard-code Null Island for runtime styling test
Relying on the stylesheet to jump from an invalid camera to Null Island seems to introduce a race condition where the tiles don’t render by the time the snapshot takes place.
2020-05-01 10:51:37 -07:00
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
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
Chloe Krawczyk
4908bc1de7 update license file (#285) 2020-04-29 12:15:42 -07: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
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
Minh Nguyễn
f3da2d7053 [ios, macos] Only set snapshotter camera options if camera is valid 2020-04-24 10:41:07 -07:00
Nishant Karajgikar
6c764cbe31 Fixing issue where UIColor with alpha < 1 was being rendered incorrectly (#266)
* Expose new method to get color for pre-multiplied alpha

* Call new method to get pre-multiplied color values

* Fix tests

* Apply fix for macOS

* Update changelogs

* Rever submodule changes

* Add test

* Review comment

* Update platform/ios/CHANGELOG.md

Co-Authored-By: Minh Nguyễn <mxn@1ec5.org>

* Update platform/macos/CHANGELOG.md

Co-Authored-By: Minh Nguyễn <mxn@1ec5.org>

Co-authored-by: Minh Nguyễn <mxn@1ec5.org>
2020-04-21 10:04:13 -04: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
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
Minh Nguyễn
93890681af [ios] Embed MapboxMobileEvents.framework in iosapp 2020-04-02 17:33:34 -07: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
Julian Rex
4dbff0ff55 Fix compilation errors when compiling tests in release. (#245) 2020-03-30 16:27:05 -04:00
Minh Nguyễn
9401f340e7 ios-v5.8.0-beta.2, macos-v0.15.0-beta.2 2020-03-27 15:43:02 -07:00
Minh Nguyễn
9dcbadeba3 [ios, macos] Increase snapshot test timeout 2020-03-27 15:43:02 -07:00
Julian Rex
171ff9484a Adds delegate to MGLNetworkConfiguration (#228) 2020-03-27 10:28:21 -04:00
Julian Rex
be6574d0df Updates gl-native submodule to 1.5.0 release (#242) 2020-03-26 19:18:34 -04:00
Minh Nguyễn
1d466465a5 [macos] Match snapshotted style with main map
Copy layer visibility settings and translated labels from the main map to the snapshotted map.
2020-03-26 15:29:33 -07:00
Minh Nguyễn
3a55330765 [ios, macos] Snapshot-test runtime styling in snapshots 2020-03-26 15:29:33 -07:00
Minh Nguyễn
ecf9a141a0 [ios, macos] Unit-test snapshotter 2020-03-26 15:29:33 -07:00
Minh Nguyễn
63bf91125a [ios, macos] Snapshotter (runtime styling) delegates
Added a protocol and property for MGLMapSnapshotter’s delegate, which it uses for runtime styling. Generalized MGLStyle to be usable in the absence of MGLMapView. Moved MGLOpenGLStyleLayer code around to compile.
2020-03-26 15:29:33 -07:00
Minh Nguyễn
180ab72055 [macos] Call overlay handler when snapshotting 2020-03-26 15:29:33 -07:00
Jordan Kiley
6d0c81ddaf Add triage label to new issues (#232)
* Add triage label automatically

* change to status: triage
2020-03-19 17:23:07 -07:00
Julian Rex
3aa84ed731 Refactor metrics triggering (#231) 2020-03-19 13:41:48 -04:00
Julian Rex
be34d3f420 Remove multiline. (#230) 2020-03-19 00:38:00 -04:00
Julian Rex
f719de9ff4 Updates metrics trigger. (#229) 2020-03-18 23:06:40 -04:00
Minh Nguyễn
81df48df70 ios-v5.8.0-beta.1, macos-v0.15.0-beta.1 2020-03-17 12:27:35 -07:00
Julian Rex
d0bed6e00d Try with 1 less core. 2020-03-17 12:27:04 -07:00
Minh Nguyễn
e27b889215 [ios, macos] Sorted a changelog entry 2020-03-17 02:14:03 -07:00
Minh Nguyễn
7b92e2a032 [macos] Highlight UC POIs 2020-03-17 02:14:03 -07:00
Minh Nguyễn
5196e37d48 [ios, macos] Convert NSDictionary to GeoJSON 2020-03-17 02:14:03 -07:00
Minh Nguyễn
93f5290c0e [ios, macos] SELF IN MGLShape expressions
Added support for the expression syntax “SELF IN shape” or “shape CONTAINS SELF”, which is interpreted as a “within” expression in JSON format.
2020-03-17 02:13:53 -07:00
Minh Nguyễn
957296b2fb [ios, macos] Convert geometries to shapes, not features
Fixed an issue where GeoJSON geometries were converted to MGLFeature instances instead of MGLShape objects.
2020-03-17 01:48:28 -07:00
Minh Nguyễn
342606db99 [ios, macos] Documented new aggregate predicate support 2020-03-17 01:47:53 -07:00
Minh Nguyễn
fb559ea8d4 [ios, macos] Aggregate equality predicates
Added support for “ANY … =” and “ALL … !=” as synonyms for “IN” and “NOT IN”, respectively.
2020-03-17 01:47:49 -07:00
Minh Nguyễn
bc6f434a88 [ios, macos] Removed in expression workaround
Removed the match-based in expression workaround in favor of real support for an in expression operator. Avoid interpreting “literal IN literal” predicates as legacy filters.
2020-03-17 01:46:22 -07:00
Minh Nguyễn
363610c7df [ios] Test snapshotting on background queue 2020-03-16 18:17:08 -07:00