Commit Graph

17582 Commits

Author SHA1 Message Date
Bruno de Oliveira Abinader
7cf5350e3c [build] Use cheap-ruler-cpp provided via mapbox-base 2020-03-27 14:46:40 +02:00
Juha Alanen
bc80e5bacf [build] Add steps to build curl for Android
Add steps to build curl with openssl for Android.
Prebuilt libraries will be used by default.
2020-03-27 11:27:24 +02:00
Juha Alanen
2a6b2f6638 [build] Add mapbox-gl-native-curl submodule 2020-03-27 11:27:24 +02:00
Juha Alanen
364ade830b [build] Remove submodule curl-android-ios 2020-03-27 11:27:24 +02:00
Kevin Li
dbace6a779 Update change log for 9.1.0-beta.2 (#295) (#297)
* Update change log for 9.1.0-beta.2

* Update CHANGELOG.md

Co-Authored-By: Chloe Krawczyk <chloe.krawczyk@mapbox.com>

* Update CHANGELOG.md

Co-Authored-By: Chloe Krawczyk <chloe.krawczyk@mapbox.com>

* Update CHANGELOG.md

Co-Authored-By: Chloe Krawczyk <chloe.krawczyk@mapbox.com>

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-Authored-By: Chloe Krawczyk <chloe.krawczyk@mapbox.com>

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Chloe Krawczyk <chloe.krawczyk@mapbox.com>
(cherry picked from commit ab1aed9b04)
2020-03-27 16:38:47 +08:00
Kevin Li
ab1aed9b04 Update change log for 9.1.0-beta.2 (#295)
* Update change log for 9.1.0-beta.2

* Update CHANGELOG.md

Co-Authored-By: Chloe Krawczyk <chloe.krawczyk@mapbox.com>

* Update CHANGELOG.md

Co-Authored-By: Chloe Krawczyk <chloe.krawczyk@mapbox.com>

* Update CHANGELOG.md

Co-Authored-By: Chloe Krawczyk <chloe.krawczyk@mapbox.com>

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-Authored-By: Chloe Krawczyk <chloe.krawczyk@mapbox.com>

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Chloe Krawczyk <chloe.krawczyk@mapbox.com>
2020-03-27 12:58:44 +08:00
Kevin Li
585253ed0d Bump gl-native to 1.5.0 (#296) 2020-03-27 12:54:53 +08: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
Alexander Shalamov
77466d23d6 Update change log for the maps-v1.5.0 release 2020-03-26 15:28:53 -04:00
zmiao
debf117360 Add changelog 2020-03-26 14:13:59 +02:00
zmiao
e9b99a5233 Address review finding
Remove unncessary condition check
2020-03-26 14:13:59 +02:00
zmiao
25ad9d184d Add unit tests 2020-03-26 14:13:59 +02:00
zmiao
848f48ac27 [core] Fix within meridian issue 2020-03-26 14:13:59 +02:00
Kevin Li
fbea14a8bc bump telemetry to 5.0.0, core to 2.0.0 (#293) 2020-03-26 16:24:55 +08:00
Julian Rex
9009089a93 Add NSURLSession delegation to http_file_source.mm (#16321) 2020-03-25 17:56:40 -04:00
Thiago Marcos P. Santos
0998ffbab8 [core] Use const& for the OfflineRegion object
It is used as const and also fixes a build issue on iOS:

```
Non-const lvalue reference to type ‘mbgl::OfflineRegion’ cannot bind
to a temporary of type ‘typename remove_reference<OfflineRegion &>::type’
(aka ‘mbgl::OfflineRegion’)
```
2020-03-25 22:09:07 +02:00
Tobrun
4b0cd4025f [glyph] rework local glyph generation to use RGB values vs alpha (#289) 2020-03-25 14:58:59 +01:00
Mikhail Pozdnyakov
d4db3b1126 Add change log entry 2020-03-25 15:11:41 +02:00
Mikhail Pozdnyakov
735fc0a4dc [core][tile mode] Share seenCrossTileIDs across all placeLayer() calls
Thus we obviate lots of repeated operations for already placed symbols.
2020-03-25 15:11:41 +02:00
Mikhail Pozdnyakov
313844b1da [core][tile mode] Place tile intersecting labels first, across all layers
Thus, we reduce the amount of label cut-offs in Tile mode.

Before, labels were arranged within one symbol layer (one bucket),
which was not enough for several symbol layers being placed at the
same time.
2020-03-25 15:11:41 +02:00
Mikhail Pozdnyakov
f5430ca33c [core] Introduce map mode specific Placement implementations 2020-03-25 15:11:41 +02:00
Mikhail Pozdnyakov
7ba5d5e2dd [core] Introduce Placement::placeLayers() 2020-03-25 15:11:41 +02:00
Alexander Shalamov
6984dbf155 Add getLayer and getSource snapshotter methods (#292)
* Expose snapshotter layer and source objects

* Add example snapshotter + within activity

* Bump vendor/mapbox-gl-native
2020-03-25 13:42:23 +02:00
Alexander Shalamov
fd1f8703cd Update changelog 2020-03-25 07:01:42 -04:00
Alexander Shalamov
2b37d81d73 [android] Expose getLayer, getSource and Observer interface for snapshotter
So that users can modify properties of an existing layer / source objects
2020-03-25 07:01:42 -04:00
Kevin Li
da6d8a2b06 Add runtime styling APIs on MapSnapshotter (#268)
* Add styleable snapshotter.

* Add style API for snapshotter

* Add observer interface to snapshotter

* WIP Add styling to snapshotter activity

* Update interface and implement addlayer functions.

* Deprecate methods instead of removing

* Implement addSource functions.

* Implement addImage function

* Still use the previous callback interface.

* Expose onStyleDidloaded interface

* Add setStyle method

* Start native snapshotter from start method

* Fix snapshotter test.

* Fix check style

* Keep the original interface

* Update gl-native

* Add demo for snapshotter heatmap layer

* bump gl-native

Co-authored-by: Alexander Shalamov <alexander.shalamov@mapbox.com>
2020-03-25 09:59:38 +08:00
Mikhail Pozdnyakov
77d95d27ce Add change log entry 2020-03-24 20:53:55 +02:00
Mikhail Pozdnyakov
371af12e1f StyleConversion.SetGenericProperties test 2020-03-24 20:53:55 +02:00
Mikhail Pozdnyakov
7234cb3968 [core] Ability to set source-layer setProperty method 2020-03-24 20:53:55 +02:00
Mikhail Pozdnyakov
5f1847d9a2 [core] conversion::Layer uses setProperty API to set max/min zoom & filter 2020-03-24 20:53:55 +02:00
Mikhail Pozdnyakov
20d960ed51 [core] Layer::setProperty() can set min/max zoom and filter 2020-03-24 20:53:55 +02:00
Mikhail Pozdnyakov
280b806777 [core] Move generic setProperty() parts to the base Layer class 2020-03-24 20:53:55 +02:00
Tobrun
02b5e60f86 [testapp] - add example using within expression (#288) 2020-03-24 12:52:54 +01:00
tobrun
99dbb3eed5 [android] - use RGB values instead of alpha values for local glyph generation 2020-03-24 06:03:03 -04:00
Kevin Li
3f45b0a24b [android] Add jni binding for styleable snapshotter (#16286)
* [android] Add jni binding for styleable snapshotter

* Remove Map parameter from factories

- remove unused map from factory interfaces. Map is only needed for repaint.

* implement addlayer function

* Implement addsource function for snapshotter

* Implement addImages function

* format codes

* Apply baseline

* Update CHANGELOG.md

* Update map_snapshotter.cpp

* Destroy snapshotter on the thread it was created

* Activate file sources in start

* Use custom deleter for snapshotter

* format codes

* Release snapshotter pointer to deleting lambda

* Clang format

* Update CHANGELOG.md

* Fix review comments

* FIx review comments

Co-authored-by: Alexander Shalamov <alexander.shalamov@mapbox.com>
2020-03-24 14:33:54 +08:00
Thiago Marcos P. Santos
1adc436c9d [test] Include cpp-httplib as a system library
This way it will not get warnings by linters and -Werror.
2020-03-23 23:04:51 +02:00
Thiago Marcos P. Santos
3e173e1b71 [build] Deprecated GCC 4.9 and set the minimum to GCC 5 2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
463876a7b1 [build] Prevent future modernize-* regressions
Also ignore modernize-avoid-c-arrays, not such a
big deal at the moment.
2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
d446a1cf63 [core] Fix modernize-use-override errors
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
9dbd0a666a [core] Fix modernize-pass-by-value errors
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
76b99eb8e8 [core] Fix modernize-deprecated-headers errors
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
23a248eacd [core] Fix modernize-use-equals-default errors
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
02e91428fd [core] Fix modernize-use-auto errors
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
cee3910f17 [core] Fix modernize-return-braced-init-list errors
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Alexander Shalamov
47594f003b Update LICENSE.mbgl-core.md license file 2020-03-23 11:33:06 -04:00