Commit Graph

839 Commits

Author SHA1 Message Date
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
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
0776d48503 [macos] Install Node packages before running checks 2020-03-06 15:19:41 -08: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
4c8f5524a9 [macos] Build macOS on CI
But not mbgl.
2020-02-26 12:12:41 -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
78b000a94c [macos] Restored macOS make targets
Restored macOS make targets, including the genstrings target shared between iOS and macOS. Updated macOS build settings to align with current CMake build system.
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
Jordan Kiley
04547cfba0 Update changelog and mapbox-gl-native submodule (#67) 2019-11-23 08:25:16 -05:00
Jason Wray
dfe3ae235d [build] Update mbgl project paths 2019-10-22 14:58:08 -07:00
Jordan Kiley
8633f0fd59 [WIP] Updating links and docs for new repo (#20) 2019-10-22 10:45:09 -07:00
Alexander Shalamov
e5cdc4ecf3 [core][android][darwin] Move number format to i18n 2019-09-26 10:55:47 +03:00
Mark Grimes
66c1d84890 Add layer_manager.cpp to mbgl-offline on macOS
This is to fix #15358
2019-09-20 17:28:43 +03:00
Thiago Marcos P. Santos
3888af2460 [build] Move compression to platform
It depends on platform specific compression library.
2019-09-20 15:27:52 +03:00
Julian Rex
2b08c1d7bf [ios, macos] Fix MGLOfflinePack invalidate crash (#15582) 2019-09-18 18:13:07 -04:00
zmiao
0a219d182c [Core] Fix wrong maxzoom setting of tileSet when using URL source (#15581)
* [core] Take max/min zoom option from style if they are set

* [core] std::move input value

* [Core] Add changelogs

* [Core] Fix clang-format reported error

* [Core] fix clang-tidy reported error
2019-09-17 18:00:37 +03:00
Thiago Marcos P. Santos
1304502f81 [build] Fix iOS nits
- Hardcoded the bundle identifier on Info.plist, CMake is not
  picking it up.
- Do not use installed headers when building the framework.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
8ee6cfa8fb [build] Cosmetics on vendor packages
- Add include guards on all the files
- Add a vendor package for sqlite and gtest
- Use relative paths to all the files
2019-09-17 12:28:55 +03:00
Nadia Barbosa
8331b7adfe [ios, macos] Introduce custom drawing overlays for MGLMapSnapshotter 2019-09-16 12:55:36 -07:00
Mikhail Pozdnyakov
8af78ddbb9 [core] Update MapObserver::onDidFinishRenderingFrame() API 2019-09-12 00:40:08 +03:00
Mikhail Pozdnyakov
5207a36074 [core, ios, macos] SDK objects should hold weak pointers to the core style objects (#15539) 2019-09-09 23:55:38 -04:00
Jason Wray
8ccf15069d [darwin] Use en_US as default test locale/language 2019-09-09 10:26:01 -07:00
zmiao
81e62c8cc0 [Core] Update ChangeLog of Integer Overflow fix of pr #15560 (#15586)
*  Update ChangeLog

* Fix extra space
2019-09-09 11:52:47 +03:00
zmiao
f53143f1a1 [core] Fix Integer overflow when converting tileCoordinates to LatLon (#15560)
* [core] fix integer overflow

* [core] Add change log
2019-09-05 11:08:21 +03:00
Fabian Guerra Soto
74d6fdb533 [ios, macos] Fix content inset documentation. (#15552) 2019-09-04 12:18:22 -07:00
zmiao
6ef2710e5c [core] fix collisionBox alignment when Icon/text translation is enabled (#15467)
* add initial fix

* fix bug for collision circle

* refind code structure

* fix indentation

* update test

* refind code structure

* Add changelog

* Add comment for boolean
2019-08-30 08:24:03 +03:00
Ander Conselvan de Oliveira
21632a66f8 [core] Remove programCacheDir parameter from ProgramParameters
Binary shader support has been removed in commit c2f974f2a5 ([core]
Remove binary shader support). This left-over parameter is not used
anywhere anymore.
2019-08-27 16:23:48 +03:00
zmiao
482dfc501c Add changelog for fix of mixed SDF+non-SDF icon rendering in one layer (#15492)
* Add changelog for fix of mixed SDF+non-SDF icon rendering in one layer

* Add bracket for ios changelog number

* Add more brackets
2019-08-27 13:29:02 +03:00
Mikhail Pozdnyakov
ef3d04dee5 [core] Export symbol placement update status from MapObserver 2019-08-23 10:56:05 +03:00
Ansis Brammanis
ba2d80441e [core] add missing changelog for symbol fading issue (#15443) 2019-08-21 10:54:02 -07:00
Alexander Shalamov
1625aa0000 [ios][macos][android][node] Update changelog for icon-text-fit fixes 2019-08-20 12:31:02 +03:00
Alexander Shalamov
75874cb546 [macos][ios][android][node] Add changelog entry for text-writing-mode layout property 2019-08-13 13:32:56 +03:00
Alexander Shalamov
0ff218d688 [darwin] Add plural override for 'text-writing-mode' layout property 2019-08-13 13:32:56 +03:00
Aleksandar Stojiljkovic
7cdeed7cb4 Changelog entries and a nit for #15281 2019-08-08 12:14:48 +03:00
Aleksandar Stojiljkovic
8fda03a686 [core] Changelog entry for #15195 2019-08-01 09:28:36 +03:00
m-stephen
2e5897c0f4 [ios, macos]MGLLoggingConfiguration can filter logs from core (#15120)
* [ios, macos] update proj config

* [ios, macos] implement the logging logic

* [ios, macos] update comments

* [ios, macos] update mac os config

* [ios, macos] re-generate sdk files

* [ios, macos] re-generate sdk files json

* [ios, macos]re-generate json files

* [ios, macos] re-generate ios json files

* [ios] change conditions to bit mask

* [ios, macos]send messages to platform

* [ios, macos] add changelogs

* [ios, macos] revert `logging_nslog`

* [ios, macos] add event name and code into log msg

* [ios, macos] update changlog

* [ios, macos] fix a nit

* [ios, macos]Fix nits.
2019-07-25 15:39:01 +08:00