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
Minh Nguyễn
3318a0a383
[ios, macos] Keep MGLMapSnapshotter alive through completion
2020-03-16 18:17:08 -07:00
Minh Nguyễn
d357f8c511
[ios, macos] Clarify threading in snapshotter documentation
2020-03-16 18:13:58 -07:00
Minh Nguyễn
8148cb7ff9
[ios, macos] Document changes to snapshotter memory management
2020-03-16 18:13:58 -07:00
Minh Nguyễn
8998f7a314
[ios, macos] Documented performance and caching improvements in mbgl v1.4.0
2020-03-16 18:13:58 -07:00
Minh Nguyễn
98e8af96d3
[ios, macos] Streamlined MGLMapSnapshotter
...
Upgraded MGLMapSnapshotter to be compatible with the latest mbgl.
Converted as many of MGLMapSnapshotter’s instance variables and properties as possible into local variables close to the point of use. The completion handler of -startWithCompletionHandler: and its variants is no longer called as part of -cancel, when the snapshotter is deallocated, or when the application is terminating. -loading once again works and is used to avoid concurrent requests, now that the completion handler is no longer memoized. Snapshotter options are copied and converted into a snapshotter on demand as late as possible.
Made the decoration step synchronous while continuing to perform it on a worker thread. Only access self on user-facing queues. Ensure MGLMapSnapshotter.loading is reset after snapshotting.
Pushed some drawing and completion code up from inner completion blocks to outer completion blocks to avoid excessively passing state around. Converted a few class methods into standalone C functions to emphasize the avoidance of captured state.
2020-03-16 18:13:42 -07:00
Minh Nguyễn
5be63a0d4a
[ios, macos] Updated MGLSymbolStyleLayer.symbolSortKey documentation
2020-03-16 17:59:35 -07:00
Minh Nguyễn
48f034cecd
mbgl v1.4.0
2020-03-16 17:59:34 -07:00
Alexander Shalamov
8b12c6b305
Add async completion handler to MGLOfflineStorage::preloadData ( #188 )
...
* Add async completion handler to preloadData
* Update unit tests
* Update changelogs for iOS and macOS
2020-03-16 10:20:02 +02:00
Minh Nguyễn
75f2681c19
[ios, macos] Minimum and maximum pitch
...
Added computed properties to MGLMapView for further restricting the map’s camera’s pitch.
2020-03-12 17:07:06 -07:00
Minh Nguyễn
dc3470b993
[ios, macos] Only set stretchable regions for stretch resizing mode
2020-03-11 16:55:18 -07:00
Minh Nguyễn
a18d5211a6
[ios, macos] Roundtrip resizable image cap insets
2020-03-11 16:55:18 -07:00
Minh Nguyễn
c225a50f25
[ios, macos] Added image stretching tests
2020-03-11 16:55:18 -07:00
Minh Nguyễn
9c4b5ee557
[ios, macos] Nine-part resizable images
...
The MGLSymbolStyleLayer.iconTextFit property now respects the cap insets of any nine-part stretchable image passed into the -[MGLStyle setImage:forName:] method.
The “Manipulate Style” command in macosapp demonstrates the stretchable image feature by adding a single Ohio state route shield image, which has cap insets defined in the asset catalog, and labeling each Ohio state route with that image, stretched to fit the route number without widening the icon’s stroke.
2020-03-11 16:55:18 -07:00
Chloe Krawczyk
33ee616396
Add pr template for drafting changelogs ( #203 )
2020-03-11 11:22:36 -07:00
Minh Nguyễn
20730e122e
mbgl v1.3.1+ios
2020-03-09 22:07:49 -07:00