Commit Graph

15749 Commits

Author SHA1 Message Date
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
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
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
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
Alexander Shalamov
71efb24e2d Bump mapbox-base to 1.2.0 2020-03-23 11:33:06 -04:00
zmiao
648ce071d3 Add Changelog 2020-03-23 12:19:39 +02:00
Thiago Marcos P. Santos
4b139b5905 [build] Thread clang-tidy performance-* warnings as errors
With all them fixed, they won't come back.
2020-03-23 12:09:09 +02:00
Thiago Marcos P. Santos
d15b9c1f9c [core] Fix performance-unnecessary-value-param errors
As reported by clang-tidy-8.
2020-03-23 12:09:09 +02:00
Thiago Marcos P. Santos
37802eec36 [core] Fix performance-type-promotion-in-math-fn errors
As reported by clang-tidy-8.
2020-03-23 12:09:09 +02:00
Thiago Marcos P. Santos
991cfee7df [core] Fix performance-noexcept-move-constructor errors
As reported by clang-tidy-8.
2020-03-23 12:09:09 +02:00
Thiago Marcos P. Santos
6223fc2898 [core] Fix performance-inefficient-vector-operation errors
As reported by clang-tidy-8.
2020-03-23 12:09:09 +02:00
Thiago Marcos P. Santos
5210d720ad [core] Fix performance-unnecessary-copy-initialization errors
As reported by clang-tidy-8.
2020-03-23 12:09:09 +02:00
Thiago Marcos P. Santos
cedb7368f1 [core] Fix performance-for-range-copy errors
As reported by clang-tidy-8.
2020-03-23 12:09:09 +02:00
Thiago Marcos P. Santos
ef19a33866 [build] Trigger the downstream CI and get the status back
Allows triggering a pipeline at any other repository
passing parameters.
2020-03-20 13:59:23 +02:00
Mikhail Pozdnyakov
8bf841a951 [core] Render::clearData clears fonts 2020-03-20 11:43:59 +02:00
Mikhail Pozdnyakov
cb1d5053b0 Update changelog 2020-03-20 11:43:59 +02:00
Mikhail Pozdnyakov
2a8e89d355 Update metrics 2020-03-20 11:43:59 +02:00
Mikhail Pozdnyakov
2ae96ad687 [core] Introduce Renderer::clearData() instead of keepRenderData map options
`Renderer::clearData()` is a better API than the removed `MapOptions::keepRenderData()`:
- gives more flexibility to the client
- similar to the existing `Renderer::reduceMemoryUse()`
- the `MapOptions::keepRenderData()` API implementation could not handle the raise condition, which
happened if the new still image request had come before all tiles from the previous requests were loaded.

Co-authored-by: Dane Springmeyer <dane@mapbox.com>
2020-03-20 11:43:59 +02:00
galinelle
bc45d65c58 Add additional transformState::latLngToScreenCoordinate getter (#16311)
This change adds a latLngToScreenCoordinate overload, to retrieve
the projected vec4 in additional to the ScreenCoordinate object,
that is useful to detect whether the projected latLng is in front
or behind the camera.
2020-03-19 18:53:09 +02:00
zmiao
f3cf855894 Update metrics 2020-03-19 14:40:49 +02:00
zmiao
b45cae286e Refactor within function 2020-03-19 14:40:49 +02:00
zmiao
c3a1caf612 update test 2020-03-19 14:40:49 +02:00
zmiao
df79b05178 [core] Using TileCoordinates for geometry comparison 2020-03-19 14:40:49 +02:00
zmiao
6989ee6e03 [build] Use found code sign identities 2020-03-19 10:20:44 +02:00
Mikhail Pozdnyakov
52f72dd8b4 Change log entry 2020-03-18 20:14:15 +02:00
Mikhail Pozdnyakov
11e6bd46c2 Add Map.KeepRenderData and Map.DontKeepRenderData tests 2020-03-18 20:14:15 +02:00
Mikhail Pozdnyakov
0f5e5311fa Update metrics 2020-03-18 20:14:15 +02:00
Mikhail Pozdnyakov
9e80a9f922 [render tests] Unset MapOptions::keepRenderData() flag in tile mode 2020-03-18 20:14:15 +02:00
Mikhail Pozdnyakov
6a68305e1e [core] Add ImageManager::clear() 2020-03-18 20:14:15 +02:00
Mikhail Pozdnyakov
b48900b0a7 [core] Add RenderOrchestrator::clearData() 2020-03-18 20:14:15 +02:00