Thiago Marcos P. Santos
ea2477f2ea
[core] Fix performance-no-automatic-move (bonus)
...
As reported by clang-tidy-10. We don't run clang-tidy-10 yet. We
should probably consider moving the bots at some point so errors
like this won't return.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
cc8b0e1746
[core] Fix performance-noexcept-move-constructor in header files
...
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
542c11ae63
[core] Fix modernize-use-equals-default errors in header files
...
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
7751e4be76
[core] Fix google-default-arguments errors in header files
...
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
63ef5298cd
[core] Fix modernize-use-override errors in header files
...
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
6559fa82a7
[core] Fix readability-redundant-smartptr-get errors in header files
...
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
2cd06fb0e3
[core] Fix readability-const-return-type errors in header files
...
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
46fa691596
[core] Fix performance-unnecessary-value-param errors in header files
...
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
563d4b6cac
[core] Fix performance-move-const-arg errors in header files
...
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
09d58c0f86
[core] Fix bugprone-forwarding-reference-overload errors in header files
...
This was a false positive.
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
c21cf413b8
[core] Fix performance-inefficient-vector-operation errors in header files
...
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
c4cb026fa4
[core] Fix readability-redundant-member-init errors in header files
...
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
dffe00feea
[core] Fix readability-avoid-const-params-in-decls errors in header files
...
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Alexander Shalamov
ffea0af9bf
Add generic setter for 'source' property
...
- Add setter for 'source' property
- Test generic setters via setProperty method
2020-04-16 13:52:54 -04:00
Andrew Hay Kurtz
0c95acf103
Enable 'circle-sort-key' layout property
2020-04-14 22:30:40 +03:00
Gali Nelle
209857f8ac
Fix LocationIndicator Layer
...
This changes image size properties to be scales instead of pixel sizes.
The commit also adds fixes for handling image updates with the same ID,
adds tests for expressions in paint properties, as well as tests for using images
with pixel ratio greater than 1.
Finally it moves image-tilt-displacement and perspective-compensation properties
from layout to paint properties, and includes other minor cleanups.
2020-04-10 00:15:43 +03:00
Gali Nelle
cd91664935
Add unit tests for Rotation interpolator
2020-04-08 14:00:26 +03:00
Gali Nelle
8e581c88ea
Make location indicator bearing a paint property
...
This change introduces a new property type, Rotation, that uses
a custom interpolator, and that is currently applied to
all style properties named "bearing", with a period attribute.
2020-04-08 14:00:26 +03:00
Gali Nelle
9a55c282fe
Add LocationIndicatorLayer
...
New key is "G" in mbgl-glfw, cycling between no puck, centered
in the viewport and positioned in Tokyo.
2020-04-08 14:00:26 +03:00
Alexander Shalamov
15f73a06f2
[core] Add setMaxOverscaleFactorForParentTiles
2020-04-01 16:18:55 -04:00
Thiago Marcos P. Santos
94d1c10727
[core] Fix readability-* errors
...
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03: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
Alexander Shalamov
71efb24e2d
Bump mapbox-base to 1.2.0
2020-03-23 11:33:06 -04: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
zmiao
df79b05178
[core] Using TileCoordinates for geometry comparison
2020-03-19 14:40:49 +02:00
zmiao
aa0c9c267f
[core] Fix within expression serialization + fix within expression equal operator
2020-03-05 20:53:16 +02:00
Alexander Shalamov
9ff1435aaa
[core] Change GeoJSONOptions.clusterProperties to std::map
...
The clusterProperties contain only few elements at most.
2020-03-05 17:43:37 +02:00
Alexander Shalamov
02a1a31136
[core] Fix TransitionOptions serialization
2020-02-26 18:15:23 +02:00
Alexander Shalamov
e55a46e5d1
[core] Fix Color serialization
2020-02-26 18:15:23 +02:00
Alexander Shalamov
8785f77cd6
[core] Generate layer code
2020-02-26 18:15:23 +02:00
Alexander Shalamov
713299c429
[core] Add layer serialization method
2020-02-26 18:15:23 +02:00
zmiao
7cdb526dcc
[core] Add bounding box overlapping check before line within polygon test
2020-02-21 21:39:48 +02:00
zmiao
b9425dd4ec
[core] Remove unnecessary includes, fix comments
...
This reverts commit b5c386ad7708ca9fe14f219b0ffc94cf6ce8fc88.
2020-02-21 21:39:48 +02:00
zmiao
351f421080
[core] Update unti tests. Remove unnecessary debugging code
2020-02-21 21:39:48 +02:00
zmiao
0cc042434d
[core] Add support for "line within polygon"
2020-02-21 21:39:48 +02:00
Kevin Li
02274e7601
[core] Implement 'in' expression. ( #16162 )
...
* Implement in.cpp
* Fix review comments.
* Add expression_equality test for 'in'
* Fix review comments.
* [core] Update changelog.
* [core] Update mapbox-gl-js
* [core] Ignore render-tests/debug/padding
* [core] Update baseline.
2020-02-15 17:36:57 +08:00
zmiao
759dfe8bf6
[core] Support [within expression] with layout property
2020-02-12 17:35:18 +02:00
zmiao
7fda6ecad3
reserve vecotr capacity, fix for points within polygon
...
Address review findings/nit
2020-02-12 12:24:05 +02:00
zmiao
2963afa010
Add support for expression test
...
Fix polygon within algorithm
Add Unit tests
Fix incorrect metrics folder for ios-render-test-runner job
2020-02-12 12:24:05 +02:00
zmiao
1bd2ccf239
Enable within expression with Filter
...
add canonical as pointer
fix review findings
2020-02-12 12:24:05 +02:00
zmiao
3e99c08ea6
Enable parse within expression
...
Add geometry type checker
2020-02-12 12:24:05 +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
Alexander Shalamov
fce4129435
[core] Add runtime API for setting tile prefetch delta for Source
...
New setPrefetchZoomDelta(optional<uint8_t> delta) method allow overriding
default tile prefetch setting that is defined by the Map instance. The
method can be moved to generic style specification if found to be useful
for gl-js engine.
2020-02-11 10:40:30 +02:00
Thomas Moenicke
b64ed75444
[build] Adding a build flag to build without GL if needed ( #16120 )
...
* [build] Adding a build flag to build without GL if needed
* [build] Moving custom layer to mbgl/gl
2020-02-03 19:10:57 +02:00
Alexander Shalamov
0b727108c8
[core] Add getSharedExpression to property expression
...
New method can be used for aggregating property expressions from
multiple properties(layers) into single match / case expression.
2020-02-03 16:45:42 +03:00
Mikhail Pozdnyakov
61ab64906e
GeoJSONSource is re-using the existing scheduler
...
Thus avoiding spawing new threads on `setGeoJSONData()` calls.
2020-01-24 14:15:37 +02:00
Konstantin Käfer
5a1e4c6b81
[core] implement stretchable icons for icon-text-fit
2020-01-15 15:02:11 +02:00
Konstantin Käfer
62b0f4cde2
[core] Add stretches and content to style::Image
2020-01-15 15:02:11 +02:00