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
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
zmiao
df79b05178
[core] Using TileCoordinates for geometry comparison
2020-03-19 14:40:49 +02:00
Mikhail Pozdnyakov
3536de5124
[core][tile|static mode] Introduce MapOptions::keepRenderData() flag
...
Render orchestrator stores the render data between render frames if this flag is set.
2020-03-18 20:14:15 +02:00
Thiago Marcos P. Santos
461c414748
[core] Follow-up on the platform integration callback PR
...
Addressing review comments that arrived after the PR was merged.
2020-03-12 13:35:45 +02:00
Thiago Marcos P. Santos
410e583db6
[core] Add a callback for platform RunLoop integration
...
Platform integration callback for platforms that do not have full
run loop integration or don't want to block at the Mapbox GL Native
loop. It will be called from any thread and is up to the platform
to, after receiving the callback, call RunLoop::runOnce() from the
same thread as the Map object lives.
2020-03-11 12:35:20 +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
Mikhail Pozdnyakov
ba4f5efa09
[core] OnlineFileSource is never accessed directly
2020-02-26 22:31:59 +02:00
Mikhail Pozdnyakov
25d8eab973
[core] Fix mbgl::Pass constructor
2020-02-26 22:31:59 +02:00
Mikhail Pozdnyakov
353d07f40f
[core] Move setResourceTransform() to FileSource interface
2020-02-26 22:31:59 +02:00
Mikhail Pozdnyakov
aad13f6a3f
[core] FileSourceManager::getFileSource() returns PassRefPtr
2020-02-26 22:31:59 +02:00
Mikhail Pozdnyakov
1399040087
[core] Move mbgl::Pass and mbgl::PassRefPtr to a separate header
2020-02-26 22:31:59 +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
Juha Alanen
f3c8cefc7f
[core] Return pitch bounds in degrees
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
Juha Alanen
fdf6bb3e34
[core] Add min and max pitch options
2020-02-25 16:54:44 +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
Mikhail Pozdnyakov
c04551a4e3
Expose READ_ONLY_MODE_KEY property for DatabaseFileSource
2020-02-07 14:39:03 +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
Alexander Shalamov
f30aec6c1a
[core] Add global settings object
2020-02-06 23:54:19 +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
Alexander Shalamov
9ec2e2aff7
[core] Add pause and resume to database filesource implementation
2020-01-27 14:25:37 +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
Alexander Shalamov
84b0b35f6d
[core] Use weak scheduler inside mailbox
...
There is no guarantee that scheduler is alive when message
is pushed to the mailbox.
2020-01-23 12:55:57 +03:00
Mikhail Pozdnyakov
d24c1d625a
[core] Pass std::shared_ptr<UpdateParameters> to the render orchestrator
...
So that it can retain ownership of the given parameters.
2020-01-22 14:30:26 +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
Alexander Shalamov
879c44f661
[core] Modularize FileSource codebase ( #15768 )
...
* [core] Introduce FileSourceManager and use it for default platform impl
- Add `FileSourceManager` interface that provides access to `FileSource`
instances and means of registering / unregistering `FileSource` factories
- Split `DefaultFileSource` into smaller parts
- Add `DatabaseFileSource` interface and it's default implementation
- Remove inter-dependencies between concrete `FileSource` classes
* [build] Add files to next build system
* [core] Add generic property setters / getters
* [core] Remove setOnlineStatus from OnlineFileSource interface
* [core] Hide threading implementation details from DatabaseFileSource interface
* [core] Make DB file source methods virtual
* [core] Add documentation for DatabaseFileSource and rename one method
* [core] Use simple callback instead of ActorRef
* [core] Remove ActorRef from OnlineFileSource public header
* [core] Add callback to FileSource::forward async API
* [core] Pass OfflineRegionDefinition by value
* [core] Update tests to use modular file sources
* [core] Update unit tests
* [core] Update unit tests after rebase
* [core] Backport low prio fix for cached requests
* [core] Backport pack database
* [core] Return removed factory from unRegisterFileSourceFactory
* [core] Rename shadowed args in onlinefilesource
* [core] Remove simple std::function callback aliases
* [core] Expose online file source property keys in public header file
* [test-runner] Add proxy file source test runner
* [cache] Update mbgl-cache utility to use new file source
* [metrics] Rebaseline binary size metrics
* [offline] Update offline utility
* [core] Update changelog
2020-01-13 10:57:23 +02:00
Peng Liu
236afc0395
[android][core] Add Map::latLngBoundsForCameraUnwrapped and jni binding for getVisibleCoordinateBounds. ( #16069 )
...
* [android] Add getVisibleCoordinateBounds method.
* Fix Map::latLngBoundsForCamera, add Android binding for getVisibleRegionBounds.
* Add unit tests for CameraToLatLngBoundsWithRotation and CameraToLatLngBoundsCrossDateLine.
* Move API breaking changes to a new method name latLngBoundsForCameraUnwrapped.
2020-01-09 15:53:23 +02:00
Thiago Marcos P. Santos
d08bb49c34
[core] Make it possible to reopen the database read-only for testing
...
Needed for Android, because the database is in readonly filesystem
and also because it is annoying to see files modified every time we
run the tests.
2020-01-08 13:07:12 +02:00
Mikhail Pozdnyakov
648392585e
[test runner] Show all tiles independently in Tile mode
2019-12-18 13:48:52 +02:00