Commit Graph

17582 Commits

Author SHA1 Message Date
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
14f19f0201 Update change log for the maps-v1.4.1 release 2020-03-16 06:56:51 -04:00
Dane Springmeyer
46a6932222 start using tname variable 2020-03-16 11:50:51 +02:00
Kevin Li
9daaf2fe3a Update CHANGELOG.md (#16313) 2020-03-16 16:31:55 +08: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
Kevin Li
192f5d8008 Bump gl-native to 1.4.0 (#276) 2020-03-16 15:49:24 +08:00
Kevin Li
3aa80ff407 Update map_snapshotter.cpp (#16308) 2020-03-16 08:03:30 +08:00
Thiago Marcos P. Santos
7d77a55fe0 [build] Bump docker
Allow building with OpenGL ES 2.0 headers on Linux.
2020-03-14 03:08:54 +02:00
Mikhail Pozdnyakov
09d307db14 Merge pull request #16305 from mapbox/mikhail_change_log_for_maps-v1.3.0
Update change log for the maps-v1.4.0 release
2020-03-13 14:30:33 +02:00
Mikhail Pozdnyakov
a70b33be8b [core] Fix crash at Placement::getSymbolPlacement() 2020-03-13 14:30:17 +02:00
zmiao
45c0dd8844 Update Changelog 2020-03-13 12:59:23 +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
Mikhail Pozdnyakov
b88fbe14f1 Add change log entry 2020-03-12 23:35:55 +02:00
Mikhail Pozdnyakov
915c412c17 Update metrics 2020-03-12 23:35:55 +02:00
Mikhail Pozdnyakov
05657e9573 [core] Binary size fixup 2020-03-12 23:35:55 +02:00
Mikhail Pozdnyakov
0bf8fdae9c [core] Collision index uses doubled padding with the tilted view 2020-03-12 23:35:55 +02:00
Mikhail Pozdnyakov
57810759ef [core] Variable labels stick to latest anchor if the view is tilted
This is done in order to improve labels stability and for the performace reasons.
2020-03-12 23:35:55 +02:00
Mikhail Pozdnyakov
f29865f31d [core] Do not squeeze placement period if the view is tilted
If the view is not tilted, we want the new symbols to show up faster, so we squeeze the placement period.

On contrary, with the tilted view it's more important to make placement rarely for performance reasons and as the new symbols are normally "far away" and the user is not that interested to see them ASAP.
2020-03-12 23:35:55 +02:00
Mikhail Pozdnyakov
7a2126bebb [core] Place already visible symbols first and hidden symbols last 2020-03-12 23:35:55 +02:00
Mikhail Pozdnyakov
04d840de53 Update baselines 2020-03-12 15:25:28 +02:00
Mikhail Pozdnyakov
5577c37495 [tests] Enable left-top-right-bottom-offset-tile-map-mode test
Rebase its results after 3ca26ed2a6
2020-03-12 15:25:28 +02:00
Juha Alanen
428f666adb [test][ios] Update iOS render test data setup script 2020-03-12 15:24:37 +02:00
Juha Alanen
cd320d8591 [glfw] Add OpenGL files only when the flag is enabled 2020-03-12 15:24:37 +02:00
Juha Alanen
96e32717c0 [test] Run Annotations DebugSparse test only with OpenGL renderer 2020-03-12 15:24:37 +02:00
Thiago Marcos P. Santos
461c414748 [core] Follow-up on the platform integration callback PR
Addressing review comments that arrived after the PR was merged.
2020-03-12 13:35:45 +02:00
Kevin Li
c8108edc29 Add test demo for filter with expression in (#218)
* Add test demo for filter with expression in

* Update gl-native
2020-03-12 19:03:08 +08:00
Chloe Krawczyk
5c7a432bd6 Add skip changelog label to PR template (#272) 2020-03-11 20:04:56 -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
Thiago Marcos P. Santos
639434b3ef [metrics] Updated baselines 2020-03-11 21:53:12 +02:00
kevin
93e1279de1 Bump mapbox-gl-js 2020-03-11 21:53:12 +02:00
kevin
f98cf0cd4b [core] Not filter express in in filter. 2020-03-11 21:53:12 +02:00
Chloe Krawczyk
33ee616396 Add pr template for drafting changelogs (#203) 2020-03-11 11:22:36 -07:00
Mikhail Pozdnyakov
901a960487 Update baselines 2020-03-11 16:51:45 +02:00
Mikhail Pozdnyakov
b83de65813 [core] Adjust mapbox-gl-native for the updated debug shader semantics 2020-03-11 16:51:45 +02:00
Mikhail Pozdnyakov
6c26e141a8 Bump mapbox-gl-js 2020-03-11 16:51:45 +02:00
Thiago Marcos P. Santos
410e583db6 [core] Add a callback for platform RunLoop integration
Platform integration callback for platforms that do not have full
run loop integration or don't want to block at the Mapbox GL Native
loop. It will be called from any thread and is up to the platform
to, after receiving the callback, call RunLoop::runOnce() from the
same thread as the Map object lives.
2020-03-11 12:35:20 +02:00
Kevin Li
d9bcd52a44 [doc] Update changelog for v9.0.1 (#223)
* [doc] Update changelog for v9.0.1

* Update CHANGELOG.md

* Update CHANGELOG.md
2020-03-11 17:56:18 +08:00
Chloe Krawczyk
1dedece852 Add PR template for drafting changelogs (#270) 2020-03-10 17:10:56 -07:00
Mikhail Pozdnyakov
09ab9420a9 Add change log entry 2020-03-10 20:32:34 +02:00
Mikhail Pozdnyakov
cc5e86b186 [core][tile mode] Fix assertion at line-center placement handling
The `symbolIntersectsTileEdges` algorithm should not be applied to the symbols with `line-center` placement
2020-03-10 20:32:34 +02:00
Minh Nguyễn
20730e122e mbgl v1.3.1+ios 2020-03-09 22:07:49 -07:00
Thiago Marcos P. Santos
deb1161366 [ios] Disable ccache 2020-03-09 17:25:37 -07:00
Thiago Marcos P. Santos
26a878a7a0 [build] Include an internal/internal.cmake if exists
Useful for including extra modules in forks.
2020-03-09 19:57:10 +02:00
Thiago Marcos P. Santos
bb5c4e81c5 [build] Make curl for Android a vendor package
This will make it easier to add it as dependencies of different targets.
2020-03-09 19:57:10 +02:00
Kevin Li
ea7bc213a2 Enable ccache for android studio. (#269) 2020-03-09 22:00:06 +08:00