Commit Graph

2502 Commits

Author SHA1 Message Date
Minh Nguyễn
ea308366d9 ios-v5.9.0-beta.1, macos-v0.16.0-beta.1 2020-05-01 15:53:42 -07:00
Minh Nguyễn
8eba0f6594 [ios] Adopt Apple Generic Versioning 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
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
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
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
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
Julian Rex
171ff9484a Adds delegate to MGLNetworkConfiguration (#228) 2020-03-27 10:28:21 -04: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
81df48df70 ios-v5.8.0-beta.1, macos-v0.15.0-beta.1 2020-03-17 12:27:35 -07:00
Minh Nguyễn
e27b889215 [ios, macos] Sorted a changelog entry 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
342606db99 [ios, macos] Documented new aggregate predicate support 2020-03-17 01:47:53 -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
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
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
Minh Nguyễn
7320eea5bc ios-v5.8.0-alpha.1, macos-v0.15.0-alpha.1 2020-03-05 17:20:46 -08:00
Minh Nguyễn
3cbdee8a29 [macos] Fixed typos 2020-03-05 17:20:41 -08:00
Minh Nguyễn
87fac0bb34 [ios, macos] Updated changelogs 2020-02-28 11:45:14 -08:00
Minh Nguyễn
5b4fb6c216 mapbox-gl-native v1.3.0 2020-02-28 11:45:09 -08:00
Minh Nguyễn
e403a069f0 [ios, macos] Added sort key properties 2020-02-26 12:24:21 -08:00
Minh Nguyễn
f161d738f8 [ios, macos] Synchronized, copyedited changelogs 2020-02-26 12:12:41 -08:00
Minh Nguyễn
18f3b1d14f [ios, macos] Factored out Darwin build settings
iOS and macOS once again share most build settings.
2020-02-26 12:12:41 -08:00
Minh Nguyễn
df8a934376 [ios, macos] Streets tiles can contain Traditional Chinese, Vietnamese 2020-02-21 10:59:56 -08:00
Julian Rex
6cc7ace49d Tweaks for failing integration tests on simulators (#170) 2020-02-19 15:49:41 -05:00
Jordan Kiley
2bf5999f3e Update podspecs and changelog for v5.7.0 (#164) (#165) 2020-02-13 13:48:40 -08:00