Commit Graph

7389 Commits

Author SHA1 Message Date
Alexander Shalamov
039bc80411 [android] Update android snapshotter 2020-03-05 17:43:37 +02:00
Alexander Shalamov
d86eb878ce [glfw] Use simplified Snapshotter API 2020-03-05 17:43:37 +02:00
Alexander Shalamov
ca4356fd0f [glfw] Add snapshotter to glfw test app 2020-03-05 17:43:37 +02:00
Alexander Shalamov
deca818614 [core] Simplify MapSnapshotter constructor and add observer interface 2020-03-05 17:43:37 +02:00
Alexander Shalamov
174f40dee3 [core] Add Snapshotter::cancel method 2020-03-05 17:43:37 +02:00
Alexander Shalamov
1577a6b537 [core] Expose Style from Snapshotter 2020-03-05 17:43:37 +02:00
Alexander Shalamov
29eff4028d [core] Remove Actor from public Snapshotter API 2020-03-05 17:43:37 +02:00
Alexander Shalamov
09e69654fa [core] Refactor Snapshotter
Move renderer to a separate thread while keeping map on a client thread.
2020-03-05 17:43:37 +02:00
Thiago Marcos P. Santos
dc510e44c0 [default] Build a no-op number formatter for old ICUs
This has been causing too many build problems and it is
a major source of complains because of different ICU interfaces.
2020-03-05 01:58:34 +02:00
Kevin Li
fb0c7c93a0 [android] Add sort key jni binding for fill_layer and line_layer (#16256) 2020-03-04 19:57:07 +08:00
Kevin Li
efc605bed6 [android] Update toGeoJSON in android_conversion.hpp (#16243)
* [android] Update toGeoJSON in android_conversion.hpp

* Fix review comments

* Update android_conversion.hpp
2020-03-04 14:15:14 +08:00
Mikhail Pozdnyakov
25c8d0ecc8 [default] Fix possible crash at RunLoop::wake() 2020-03-02 10:32:20 +02:00
Mikhail Pozdnyakov
3bf9143079 Emit error message with URL details on load error 404 2020-02-28 12:52:26 +02:00
Mikhail Pozdnyakov
2b1bb1dc4a [core][offline] Offline download does not hang on 404 error 2020-02-28 12:52:26 +02:00
Kevin Li
e0c2b3e771 [android] Add jni binding for min and max pitch (#16236)
* [android] Add jni binding for min and max pitch

* Update CHANGELOG.md
2020-02-28 17:26:15 +08:00
Minh Nguyễn
668a453022 [ios] Restored support for iOS 9–11 by default 2020-02-28 10:07:34 +02:00
Minh Nguyễn
8212f94f07 [ios, macos] Redirect documentation to mapbox-gl-native-ios 2020-02-27 17:14:20 -08:00
Minh Nguyễn
206b9bde5e [ios, macos] Deleted iOS/macOS map SDK sources, resources, scripts 2020-02-27 17:14:20 -08:00
Minh Nguyễn
bd252e16a3 [ios, macos] Cleaned up iOS, macOS CMake configuration 2020-02-27 17:14:20 -08:00
Thiago Marcos P. Santos
427d785848 [build] Make csscolorparser and parsedate vendors
They have a different license from the rest of the code
and this will make it explicit. Also the script for generating
the license will dectect them correctly.
2020-02-27 18:19:31 +02:00
Juha Alanen
1ac1d9363c [build][ios] Move iOS test runners to a separate cmake file 2020-02-27 10:09:35 +02:00
Juha Alanen
b756ff8e14 [build][ios] Move iOS specific ccache scripts to platform directory 2020-02-27 10:09:35 +02:00
Juha Alanen
18e9ed1c0b [build] Build files related to OpenGL renderer only when the flag is enabled 2020-02-27 10:09:35 +02:00
Mikhail Pozdnyakov
ba4f5efa09 [core] OnlineFileSource is never accessed directly 2020-02-26 22:31:59 +02:00
Mikhail Pozdnyakov
aad13f6a3f [core] FileSourceManager::getFileSource() returns PassRefPtr 2020-02-26 22:31:59 +02:00
Juha Alanen
9aefd2f2fa [glfw] Add option to test pitch bounds 2020-02-26 11:21:04 +02:00
Mikhail Pozdnyakov
7c48611f9e [core] Consolidate file source keys in the generic FileSource header
Thus we do not need to include specific headers to use `{set|get}Property`
API with key constants.
2020-02-25 23:15:47 +02:00
Mikhail Pozdnyakov
3c05bd984a [core] Fix offline region download freezing
Downloaded resources are put in the buffer and inserted in the database in batches.

Before this change, the buffer was flushed only at the network response callback
and thus it never got flushed if the last required resources were present locally
and did not initiate network requests -> it caused freezing.

Now the buffer is flushed every time the remaining resources container gets empty.
2020-02-25 23:15:47 +02:00
Kevin Li
43c1aac7e8 [android] add jni binding for source zoom delta (#16221)
* [android] and jni interface for source zoom delta

* handle nullopt in setter and getter

* Use jni::Integer
2020-02-24 18:47:16 +08:00
Thiago Marcos P. Santos
44f9a694c5 [qt] Fix compilation error
GCC complains about this variable being potentially not initialized.
2020-02-20 19:41:03 +03:00
Jordan Kiley
e27055ff21 Revert "[ios, macos] Include SKU token for offline requests (#16130)" (#16193)
* Revert "[ios, macos] Include SKU token for offline requests (#16130) (#16133)"

This reverts commit d85ce77deba12167f1c25a911ef81f44e35daa2a.

* [ios] Keep skipping docs for ios-release
2020-02-19 15:10:50 -08:00
Juha Alanen
cea87c9f2d [benchmark] Add iOS benchmark runner 2020-02-18 16:10:23 +02:00
Juha Alanen
a5ec862a2a [test-runner] Share common code between test runners
Also remove some unnecessary files.
2020-02-18 16:10:23 +02:00
Alexander Shalamov
96655276f8 [android] Don't construct weak sheduler in renderer's custructor
Android renderer creates mailbox that is owned by the scheduler that
is required by the mailbox itself. Construction should be split, so
that scheduler is fully constructed and it's weakPtr can be created.
2020-02-17 11:25:43 +02:00
Juha Alanen
bf8bde5029 [build] Bump minimum iOS version to 12.0 2020-02-14 12:01:52 +02:00
Juha Alanen
6d815401b1 [test-runner] Share common code between iOS test runners 2020-02-14 12:01:52 +02:00
Juha Alanen
632c5f9d4c [test] Add iOS unit test runner 2020-02-14 12:01:52 +02:00
Alexander Shalamov
89eab0530d [core] Set priorData from cache only if resource is useable
In cases when cached resource is useable, yet don't have an expiration
timestamp, we provided data to the requester from the cache and the same
data was returned once 304 response was received from the network.
2020-02-14 11:54:02 +02:00
Mikhail Pozdnyakov
3bd2d0e4d7 style::Style::getImage() returns optional<style::Image> 2020-02-11 14:34:46 +02:00
Mikhail Pozdnyakov
64e2bcdf43 [core] Loading images to style optimization
This change enables attaching images to the style with batches and
avoids massive re-allocations. Thus, it improves UI performance
especially at start-up time.
2020-02-11 14:34:46 +02:00
zmiao
7424c4eecb Bump GL-JS
Backport GL-JS fix 'Hide glyphs behind the camera'(https://github.com/mapbox/mapbox-gl-js/pull/9229)
2020-02-11 11:05:18 +02:00
Thiago Marcos P. Santos
021e48f35e [build] Run cmake-format on all the CMake files
Unify and enforce a CMake coding style.
2020-02-07 20:12:44 +02:00
Thiago Marcos P. Santos
47f2b20435 [build] Remove unused files
Buck build is no longer needed, neither is the previous
CMake buildsystem.
2020-02-07 20:12:44 +02:00
Thiago Marcos P. Santos
f7fef70e9d [build] Move the next buildsystem to the root
This will make the `next` buildsystem no longer the `next`, but the
`actual`. The idea is to simplify the build, removing scripts, to
make the platform buildsystem generated by CMake more compatible
with IDEs and make development more streamlined. It will also make
cross compilation easier.
2020-02-07 20:12:44 +02:00
Mikhail Pozdnyakov
c04551a4e3 Expose READ_ONLY_MODE_KEY property for DatabaseFileSource 2020-02-07 14:39:03 +02:00
Alexander Shalamov
534003495b [core] Switch unordered_map to map
Change container types where number of elements expected
to be rather small. For instance, number of offline packs
or sql statements.
2020-02-06 23:54:19 +02:00
Alexander Shalamov
bb85ec442d [core] Add hooks for setting experimental thread priorities for mbgl threads 2020-02-06 23:54:19 +02:00
Alexander Shalamov
4be2fa4f9a [core] Add platform::setCurrentThreadPriority(double) 2020-02-06 23:54:19 +02:00
Juha Alanen
d4d96fd88c [test] Enable HTTP server on Android 2020-02-06 17:52:12 +02:00
Juha Alanen
ce5b7ad113 [android] Implement watch handler in RunLoop 2020-02-06 17:52:12 +02:00