Commit Graph

14885 Commits

Author SHA1 Message Date
Mikhail Pozdnyakov
ef124e9331 [build] Bump mapbox-base version 2019-09-02 14:09:08 +03:00
Nadia Barbosa
2984535804 [ios] Allow MGLScaleBar to support dark mode on iOS 13
Add changelog PR link
2019-08-30 13:48:05 -07:00
Jason Wray
36e3a8a49c [meta] Exempt items on milestones or in projects from stalebot 2019-08-30 10:44:01 -07:00
Aleksandar Stojiljkovic
4ba1270dcc [core] DEMData: do decode on GPU (port mapbox/mapbox-gl-js#8694)
This is first part of work on porting mapbox/mapbox-gl-js#8694 - in follow up patch(es) it is required to remove CPU side copy using 2d canvas support on all supported platforms, similar to approach taken in gl.js  https://github.com/mapbox/mapbox-gl-js/pull/8694/files#diff-34dbe5f7de34dc4b9a8745dcde9bdc37R48

Decoding on CPU removed.
Padding is still done in DEMData() but, instead od doing it wwhile decoding, it is using memcpy to pad original values.

Rebase to latest mapbox-gl-js master and re-generate shaders.

Partly fixes: #15503
2019-08-30 11:18:55 +03:00
zmiao
6ef2710e5c [core] fix collisionBox alignment when Icon/text translation is enabled (#15467)
* add initial fix

* fix bug for collision circle

* refind code structure

* fix indentation

* update test

* refind code structure

* Add changelog

* Add comment for boolean
2019-08-30 08:24:03 +03:00
Langston Smith
29b11a5037 [android] Javadoc changes to clarify OfflineManager methods (#15519) 2019-08-29 17:21:31 -07:00
Bruno de Oliveira Abinader
544aabd020 [core] Add requiredTileCount to OfflineRegionStatus 2019-08-29 18:22:59 +03:00
Mikhail Pozdnyakov
e9d0fd14dc [ios][android] Add change log entry 2019-08-29 17:28:51 +03:00
Mikhail Pozdnyakov
42ba8a7d12 [core] const variables for OfflineDownload batch sizes 2019-08-29 17:28:51 +03:00
Mikhail Pozdnyakov
f84e46ad26 [core] Mark offline region resources in batches 2019-08-29 17:28:51 +03:00
Mikhail Pozdnyakov
0c80f3a383 [core] Add OfflineDatabase::markUsedResources() 2019-08-29 17:28:51 +03:00
Mikhail Pozdnyakov
62e1e03c09 [core] Move semantics for OfflineDownload::ensureResource() 2019-08-29 17:28:51 +03:00
Łukasz Paczos
becc705f05 [android] expose camera padding option
This removes the cached insets on the Android side, making the core TransformState the source of truth. This still leaves an option to lazily set the padding which is going to be applied only when the next camera animation is started.
2019-08-29 14:51:24 +02:00
Łukasz Paczos
e5c219d035 [core] make padding optional when camera position is requested.
When padding is not provided, the current one that's cached in the TransformState is going to be returned.
2019-08-29 14:51:24 +02:00
Łukasz Paczos
6a4e431dbe [android] do not clear native layers and sources when style is reloading
This prevents unnecessary layers blink when the same components are re-added after the style reload.
2019-08-29 10:38:48 +02:00
Jordan Kiley
6998e9a8ed [ios] Prepare v5.3.0 release (#15516) 2019-08-28 14:44:40 -07:00
Łukasz Paczos
ec1228242b [android] invalidate foreground icon sources even when location layer is hidden 2019-08-28 13:29:47 +02:00
Alexander Shalamov
9a42bdd7ae [core] Add filtering option to test-runner
This change adds filter command line option to render test runner,
so that test can be filtered by providing regular expression, for instance:

mbgl-render-test -f .*hillshade.*
2019-08-28 13:55:36 +03:00
Alexander Shalamov
6ee69e7493 [core] Bump mbgl/linux-gcc-5-qt-5.9 image to 5cd92d7d1c
New docker image contains Noto Sans CJK font that is used by the unit tests
2019-08-28 12:08:54 +03:00
Alexander Shalamov
9e3cb67d1c [core][qt] Update unit tests and include Korean symbols
- Decrease pixelmatch tolerance for local glyph rasterizer
- Add Korean symbols to test fixture
- Fix ifdefs, as the QT and Apple related blocks were using same results
- Add NotoSansCJK test for QT / Linux platform
2019-08-28 12:08:54 +03:00
Alexander Shalamov
5d316a8076 [core][qt] Check if QFont supports glyph and adjust backing image width
- Don't rasterize glyphs if font does not support requested code point
- Render symbols at hardcoded baseline, so that locally rasterized glyphs
  align better with server side generated fonts.
- Resize backing QImage width to be at least 24px
2019-08-28 12:08:54 +03:00
Łukasz Paczos
e3795f2a5c [android] cancel CameraAnimatorActivity joint example when the map is destroyed 2019-08-28 10:34:14 +02:00
tobrun
309f566800 [android] add font array attribute configuration for local ideograph font, add enable flag attribute configuration 2019-08-28 08:58:57 +02:00
Ander Conselvan de Oliveira
21632a66f8 [core] Remove programCacheDir parameter from ProgramParameters
Binary shader support has been removed in commit c2f974f2a5 ([core]
Remove binary shader support). This left-over parameter is not used
anywhere anymore.
2019-08-27 16:23:48 +03:00
tobrun
2c796a72aa [android] ignore project wide gradle.properties file 2019-08-27 14:54:24 +02:00
tobrun
829f27e57b [android] reorder android-check make command 2019-08-27 13:54:32 +02:00
zmiao
482dfc501c Add changelog for fix of mixed SDF+non-SDF icon rendering in one layer (#15492)
* Add changelog for fix of mixed SDF+non-SDF icon rendering in one layer

* Add bracket for ios changelog number

* Add more brackets
2019-08-27 13:29:02 +03:00
Mikhail Pozdnyakov
766392f1f8 [test runner] Use allocation peak values for memory metrics 2019-08-27 12:34:09 +03:00
Mikhail Pozdnyakov
1b020eeb11 [test runner] Test metrics reports. Check metrics results. 2019-08-27 12:34:09 +03:00
Mikhail Pozdnyakov
d0a84cb7d9 [test runner] Introduce probe_memory_.. API for render tests 2019-08-27 12:34:09 +03:00
Mikhail Pozdnyakov
e787f5f43a [test runner] Overload global new/delete 2019-08-27 12:34:09 +03:00
Mikhail Pozdnyakov
75b1e47f3a [test runner] Introduce AllocationIndex 2019-08-27 12:34:09 +03:00
Jason Wray
bf2924e858 [ios, build] Verify upload integrity during deployment 2019-08-26 12:30:56 -07:00
zmiao
c770c23262 [core] fix mixed sdf + non-sdf icon rendering in one layer (#15456)
* [core] fix icon symbol rendring when sdf and non-sdf icon in the same symbol layer

* fix build error

* fix typo

* revert renderableSegment change

* simplify codes

* fix build error

* refine sdf icon flag

* [core] fix mixed sdf + non-sdf icon rendering in one layer

* remove iconstatus getter in stymbol bucket

* fix review findings

* provide bitwise operator for SymbolContent enum

* use MBGL_MBGL_CONSTEXPR

* add one missing update for sdfIcon

* make renderer symbol type as enum
2019-08-26 21:54:59 +03:00
Łukasz Paczos
dbda6cc9e8 [android] initialize CameraPositionActivity listeners after the style is loaded 2019-08-26 14:27:35 +02:00
Mikhail Pozdnyakov
f365dcece4 [render tests] gl-native baseline for debug/collision- tests 2019-08-26 13:55:15 +03:00
Julian Rex
4010b1d256 [ios] Added pending completion blocks (#15122) 2019-08-25 01:02:29 -04:00
Fabian Guerra Soto
5c066f874c [ios] Improve tilt gesture recognizer detection. (#15349)
* [ios] Improve tilt gesture recognizer detection.

* [ios] Update tilt gesture detection angles.

* [ios] Fix a delay at the beginning of the drag gesture.

* [ios] Update tilt gesture recognizer tests.

* [ios] Update changelog.

* [ios] Add horizontal tilt gesture test.

* [ios] Addresses review feedback.

* [ios] Add comments to clarify the tilt gesture initialization.
2019-08-23 17:59:38 -07:00
Łukasz Paczos
5c22f3f236 [android] changelog for v8.2.2 2019-08-23 17:12:44 +02:00
Jason Wray
5db1c18096 [ios] Fix a couple minor warnings in iosapp 2019-08-23 07:31:48 -07:00
Aleksandar Stojiljkovic
9eff849c74 [core] Fix tileCover / TileCoordinate fromScreenCoordinate(#15442)
Remove unecessary tile coordinate unproject -> project  step.
Unproject+project isn't always a noop and this was the issue leading to wrong cover calculation in high pitch values.

Fixes: https://github.com/mapbox/mapbox-gl-native/issues/15442
2019-08-23 16:43:05 +03:00
Sudarsana Babu Nagineni
13d2667035 [android] jni binding refactor
Move registerNatives() call to a separate file to make jni.cpp
less dependent on native headers.
2019-08-23 14:39:05 +03:00
Mikhail Pozdnyakov
ef3d04dee5 [core] Export symbol placement update status from MapObserver 2019-08-23 10:56:05 +03:00
Nadia Barbosa
7b25cb1092 [ios, macos] Clarify current best practices with animated camera changes 2019-08-22 21:54:05 -07:00
zmiao
2a8359b028 [android] bindings for aggregated cluster properties (#15425)
* [android] bindings for aggregated cluster properties

* [android] change the parameter type for adding clusterProperty

* [android] add changelog

* remove extra emplty line
2019-08-22 18:54:31 +03:00
Łukasz Paczos
4a5475b1c6 [android] changelog for v8.3.0-beta.1 2019-08-22 13:58:38 +02:00
Mikhail Pozdnyakov
68de60c8d0 [core] Fill layer pattern change must cause re-layout
Otherwise, pattern properties update is not taken in action.
This caused the following render tests failure:
`build/mbgl-render-test runtime-styling/layer-add-fill regressions/mapbox-gl-js#3107 --recycle-map`
2019-08-22 14:27:27 +03:00
tobrun
81111c955b [android] update snapshot version number to 8.4.0 2019-08-22 12:36:28 +03:00
Mikhail Pozdnyakov
a1da06cb68 [core] Fix GeoJSON tiles update
Before this change, GeoJSON tiles data were updated before the
corresponding layers were applied, therefore `GeometryTileWorker`
parsed new data with the outdated layers.

It caused the following render test failure:

`mbgl-render-test text-max-width/unlimited regressions/mapbox-gl-native#9976 --recycle-map`

Now a GeoJSON tile, which needs relayout, is not parsed until the valid layers
are set.
2019-08-22 10:55:56 +03:00
Jordan Kiley
4a05d58df6 [ios] Use iOS property names in changelog (#15448) 2019-08-21 14:55:47 -07:00