Commit Graph

17582 Commits

Author SHA1 Message Date
Tsoi Yat Shing
928632ad43 Prevent dropping the TYPE_ACCELEROMETER and TYPE_MAGNETIC_FIELD sensor events, otherwise, only one sensor value is updated in each heading update.
Especially, there may be more TYPE_ACCELEROMETER events in some devices, such that TYPE_MAGNETIC_FIELD events could be dropped easily.
Also, it took longer time to reflect the latest heading if there are few events, due to the lowPassFilter.
2020-04-23 13:30:34 +02:00
Tsoi Yat Shing
7367a49de0 Remove the use of the deprecated TYPE_ORIENTATION sensor.
The compass engine has not adjusted the heading according to the device orientation. This causes wrong heading if the device is not in its normal orientation.
2020-04-23 13:30:34 +02:00
Mikko Pulkki
9f8c9c61e8 Add vec3 math operations 2020-04-23 10:53:57 +03:00
Bruno de Oliveira Abinader
1798bda981 Fix compilation issues on GCC 9 2020-04-22 21:36:00 +03:00
Mikhail Pozdnyakov
64c5b46d9e follow-up fixes after 16416 2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
c75342e1d2 Add change log entry 2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
d8639e2f9c [core] Database file source does not return stored tiles for volatile resources
The `DatabaseFileSource.VolatileResource` test is included.
2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
b120cdd207 Add Map.VolatileSource unit test 2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
dc7b1dd34f [core] Source::setVolatile enables Resource::StoragePolicy::Volatile for tiles 2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
11efffb351 [core] Add TileUpdateParameters and use it 2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
3bebd13d2e [core] Add Resource::StoragePolicy and consider it in resource loader 2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
eac6bdff16 [core] Add style::Source::setVolatile()/isVolatile() API 2020-04-22 19:21:56 +03:00
zmiao
7af1a175a3 Update changelog 2020-04-22 15:53:08 +03:00
zmiao
3a14e52f4c [core] Distance expression: Fix expression serialization 2020-04-22 15:53:08 +03:00
zmiao
87c4cb5545 [core] Distance expression: Add index range checker, fix geojson type conversion 2020-04-22 15:53:08 +03:00
zmiao
b35d80cc1d Update baseline 2020-04-22 15:53:08 +03:00
zmiao
b4b27627d6 [core] Distance expression: Change template class into template function in geometry_util, add range assertion for distance contaniner IndexRange
Change distance units to small letters, update tests accordingly
2020-04-22 15:53:08 +03:00
zmiao
8dac8f1150 [core] Distance expression: add unit tests for distance expression 2020-04-22 15:53:08 +03:00
zmiao
75ebd4aa10 Bump mapbox-base version 2020-04-22 15:53:08 +03:00
zmiao
e52f23795d [core] Introduce distance expression
Add distance unit choices

Fix cmake and add license

Add support for LineString Features

Add template to geometry helper function

Only support line and point

Rename geometry_within.cpp hpp file to geometry_util.cpp .hpp

Remove incorrect indexFilter, fix pointSetsDistance

Fix distance expression
2020-04-22 15:53:08 +03:00
Kevin Li
ec15d862db Update changelog for 9.2.0-alpha.1 (#329)
* Incorporate changes since 9.1.0 and changes in GL Native maps-v1.6.0-rc.1

Co-authored-by: Chloe Krawczyk <chloe.krawczyk@mapbox.com>
2020-04-21 21:54:09 -07:00
Thiago Marcos P. Santos
78b0988525 [node] Blacklist Node ABI 83
Not supported at the moment
2020-04-21 22:42:56 +03:00
Sudarsana Babu Nagineni
dc86c60436 [build] Fix the output path of the iOS ccache scripts
iOS ccache wrapper scripts should be in the top level
of the CMake build tree, so fix the output path in the
configure_file().
2020-04-21 17:58:32 +03:00
Nishant Karajgikar
6c764cbe31 Fixing issue where UIColor with alpha < 1 was being rendered incorrectly (#266)
* Expose new method to get color for pre-multiplied alpha

* Call new method to get pre-multiplied color values

* Fix tests

* Apply fix for macOS

* Update changelogs

* Rever submodule changes

* Add test

* Review comment

* Update platform/ios/CHANGELOG.md

Co-Authored-By: Minh Nguyễn <mxn@1ec5.org>

* Update platform/macos/CHANGELOG.md

Co-Authored-By: Minh Nguyễn <mxn@1ec5.org>

Co-authored-by: Minh Nguyễn <mxn@1ec5.org>
2020-04-21 10:04:13 -04:00
Łukasz Paczos
bb1132a4d3 make sure to hard-cancel all ignored location animators 2020-04-21 14:36:13 +02:00
Łukasz Paczos
6f73982d95 disable LocationIndicatorLayer's location transitions 2020-04-21 14:36:13 +02:00
Łukasz Paczos
e491d3c9ec update license file 2020-04-21 14:36:13 +02:00
Łukasz Paczos
1c88a2261f bump gl-native to 1.6.0-rc.1 2020-04-21 14:36:13 +02:00
Łukasz Paczos
7364dd0282 LocationIndicatorLayer tests 2020-04-21 14:36:13 +02:00
Łukasz Paczos
dbaad6312b hide the LocationIndicatorLayer impl 2020-04-21 14:36:13 +02:00
Łukasz Paczos
6bb456882a expose LocationIndicatorLayer and an alternative rendering mode based on it 2020-04-21 14:36:13 +02:00
Juha Alanen
6fa9eda136 [benchmark] Increase threshold to 15% 2020-04-21 11:04:04 +03:00
Juha Alanen
4be8c1ac34 [build] Increase the timeout for Android and iOS benchmark runners 2020-04-21 11:04:04 +03:00
Minh Nguyễn
af048481b1 [macos] Fixed minimum deployment target 2020-04-20 19:06:12 -07:00
Mikhail Pozdnyakov
f513dc915b Add change log entry 2020-04-20 21:54:31 +03:00
Mikhail Pozdnyakov
6857355932 Add Map.SourceMinimumUpdateIntervalOverride unit test 2020-04-20 21:54:31 +03:00
Mikhail Pozdnyakov
f41992819d Add Source.SourceMinimumUpdateInterval unit test 2020-04-20 21:54:31 +03:00
Mikhail Pozdnyakov
ac6c5d9ce0 [core] Tile pyramid passes minimum update interval to tiles 2020-04-20 21:54:31 +03:00
Mikhail Pozdnyakov
183a634b62 [core] TilePyramid::update accepts source impl 2020-04-20 21:54:31 +03:00
Mikhail Pozdnyakov
9a698fe3b1 [core] Introduce Source::setMinimumTileUpdateInterval API
The `Source::setMinimumTileUpdateInterval()` method sets the minimum tile update interval, which is used to throttle the tile update network requests.

Default value is `Duration::zero()`.
2020-04-20 21:54:31 +03:00
Mikhail Pozdnyakov
3c6ccfbb5d [core] Introduce Tile::setMinimumUpdateInterval() 2020-04-20 21:54:31 +03:00
Mikhail Pozdnyakov
ce11fc6cfe Add OnlineFileSource.RespectMinimumUpdateInterval unit test 2020-04-20 21:54:31 +03:00
Mikhail Pozdnyakov
64cbc9911d [core] Introduce Resource::minimumUpdateInterval
Introduce `Resource::minimumUpdateInterval` and consider it in the online file source.

The `minimumUpdateInterval` is used to throttle the requests, which were initiated due to resource expiration.
2020-04-20 21:54:31 +03:00
Thiago Marcos P. Santos
ee1d700a9b [core] Add platform abstractions for utils::now()
Some platforms might require special permissions or custom APIs
to access the current time of the day.
2020-04-20 19:03:46 +03:00
Gali Nelle
71ce52d35f Update changelog for the maps-1.6.0-rc.1 release 2020-04-20 17:03:16 +03:00
Gali Nelle
90dcc2c5d1 Add change log entry 2020-04-20 17:03:16 +03:00
Bruno de Oliveira Abinader
f856396131 [core] Fix -Werror={pessimizing,redundant}-move from GCC 9 2020-04-20 14:37:24 +03:00
Gali Nelle
ad543e4355 Add a name to CustomLayer LayerTypeInfo
This to prevent confusion and enable proper error logging when
registering layers with missing name in LayerTypeInfo where the
name should instead be present.
2020-04-20 14:22:08 +03:00
Alexander Shalamov
d7161fca1f Add bindings for max overscale factor for parent tiles (#299) 2020-04-20 11:16:59 +03:00
Gali Nelle
9d23917de1 Add missing cast for unsigned long to int conversion 2020-04-20 10:22:29 +03:00