Commit Graph

7026 Commits

Author SHA1 Message Date
Langston Smith
afab287553 [android] adding latitude value check for android test app CameraPositionActivity (#15286) 2019-08-01 09:28:09 -07:00
tobrun
9cf1746e35 [android] - load style without url or json 2019-08-01 17:40:48 +03:00
Aleksandar Stojiljkovic
75453cc587 [core] revert platform/ios/vendor/mapbox-events-ios change submitted 2019-08-01 12:18:59 +03:00
Łukasz Paczos
7c66d029cb [android] remove unnecessary android:appComponentFactory reference 2019-08-01 12:07:36 +03:00
Aleksandar Stojiljkovic
8fda03a686 [core] Changelog entry for #15195 2019-08-01 09:28:36 +03:00
Aleksandar Stojiljkovic
73d9f26d03 [core] Limit pitch based on edge insets. Fix max Z calculation in getProjMatrix.
Patch partly fixes #15163 in a way that it doesn't allow loading tens of thousands of tiles and attempt to show area above horizon:

Limit pitch based on edge insets. It is not too bad - current limit of 60 degrees stays active until center of perspective is moved towards the bottom, to 84% of screen height. The plan is to split removal of 60 degrees limit to follow up patch.

Fix max Z calculation in getProjMatrix. TransformState::getProjMatrix calculation of farZ was complex with possibility to lead to negative z values. Replacing it with simpler, precise calculation:
furthestDistance = cameraToCenterDistance / (1 - tanFovAboveCenter * std::tan(getPitch()));

TransformState::getProjMatrix calculation of farZ was an aproximation. Replacing it with simpler, but precise calculation.

Related to: #15163
2019-08-01 09:28:36 +03:00
Jordan Kiley
375c3131af [ios] Release 5.3.0-alpha.1 (#15279)
* [ios] Bumped podspecs

* Update platform/ios/CHANGELOG.md
2019-07-31 14:24:22 -07:00
Langston Smith
2873547589 [android] Additional changelog item to v7.4.1 mojito patch release section (#15277) 2019-07-31 14:07:23 -07:00
Langston Smith
abc6f5c91a [android] updated android changelog for 7.4.1 patch release (#15274) 2019-07-31 12:49:18 -07:00
Langston Smith
b1d6c5bd39 [android] updating android changelog for 8.0.2 patch release (#15273) 2019-07-31 11:19:47 -07:00
Langston Smith
c9c46ce9fc [android] updated android changelog for 8.2.1 patch release (#15272) 2019-07-31 11:00:01 -07:00
tobrun
eca5d56084 [android] update changelog for the v8.3.0-alpha.1 release 2019-07-31 20:20:58 +03:00
Łukasz Paczos
300f0b5980 [android] do not reinitialize camera/render mode if it hasn't changed
Camera/Render mode updates can be streamed from various different stateless sources and we should make sure to skip an update to a mode that's already set. This keeps the callbacks tidy and does not perform unnecessary work.
2019-07-31 18:17:16 +03:00
Łukasz Paczos
275d8ffb2b [android] save location animation timestamp only when fed
When all location layer animations were reset, due to the mode change, we were recalculating the time of the animation, while we should be taking the remaining duration. Frequent recalculation requests resulted in a really short animation duration.
2019-07-31 13:06:55 +03:00
Łukasz Paczos
703c76ada2 [android] package ideographs flag in the offline definition parcel 2019-07-31 12:12:22 +03:00
Łukasz Paczos
45e5e6341e [android] do not include CJK ideographs in the offline packs by default 2019-07-31 12:12:22 +03:00
Julian Rex
4237fca318 [ios] Update changelog for 4.11.2, 5.0.2, 5.1.2 (#15259) 2019-07-30 18:11:13 -04:00
Jason Wray
af32a452e0 [ios, build] Automatically deploy to CocoaPods 2019-07-30 13:58:30 -07:00
Jason Wray
061bc59d1f [ios, build] Install cocoapods as a deployment dependency 2019-07-30 13:58:30 -07:00
Łukasz Paczos
f86f0226dd [android] ensure default local ideographs font family is not overwrote 2019-07-30 13:53:03 +02:00
Łukasz Paczos
ac94186508 [android] harden MapGestureDetector tests 2019-07-30 09:24:49 +02:00
Bruno de Oliveira Abinader
6f0cda8c8b [build] Use mapbox-base optional 2019-07-29 18:36:08 +03:00
Jason Wray
b6dd995813 [ios, build] Stop copying iosapp token script into framework 2019-07-26 12:38:52 -07:00
Tobrun
f5293801b9 [android] - update changelog for release v8.1.1 (#15224) 2019-07-26 10:23:43 +02:00
Łukasz Paczos
433d3fb298 [android] align gesture animation reason 2019-07-25 13:48:36 +02:00
m-stephen
2e5897c0f4 [ios, macos]MGLLoggingConfiguration can filter logs from core (#15120)
* [ios, macos] update proj config

* [ios, macos] implement the logging logic

* [ios, macos] update comments

* [ios, macos] update mac os config

* [ios, macos] re-generate sdk files

* [ios, macos] re-generate sdk files json

* [ios, macos]re-generate json files

* [ios, macos] re-generate ios json files

* [ios] change conditions to bit mask

* [ios, macos]send messages to platform

* [ios, macos] add changelogs

* [ios, macos] revert `logging_nslog`

* [ios, macos] add event name and code into log msg

* [ios, macos] update changlog

* [ios, macos] fix a nit

* [ios, macos]Fix nits.
2019-07-25 15:39:01 +08:00
Jason Wray
05afd88aac [ios] Prepare ios-v5.2.0 release 2019-07-24 13:27:46 -07:00
Łukasz Paczos
6798d21eda [android] changelog for 8.2.0 2019-07-24 18:16:59 +02:00
Łukasz Paczos
dabf5d0c3a [android] remove layers first when clearing the style 2019-07-22 16:03:53 +02:00
Łukasz Paczos
d48ec27696 [android] 8.2.0 QA fixes for the test app 2019-07-22 10:00:53 +02:00
Mikhail Pozdnyakov
fd8891c12c [ios][andoid] Add change log entry 2019-07-22 10:41:03 +03:00
Thiago Marcos P. Santos
1aa4776dc1 [tests] Bump GL JS to run render test for #15139
https://github.com/mapbox/mapbox-gl-js/pull/8510
2019-07-19 15:17:00 +02:00
Tobrun
79bdce6cd4 [android] - update dependencies, target SDK, support library (#15135) 2019-07-19 11:46:38 +02:00
Tobrun
de667d2fe5 Merge pull request #15170 from mapbox/tvn-snapshot
Update snapshot version for the q release
2019-07-19 10:51:02 +02:00
Heather Stenson
fd99a6e570 [docs] Remove references to increasing offline tile limit 2019-07-18 16:27:31 -07:00
Łukasz Paczos
4a93f39700 [android] ignore a flaky MapSnapshotter test until #11669 is resolved 2019-07-18 14:39:25 +02:00
Łukasz Paczos
146e2c555f [android] changelog for 8.2.0-beta.1 2019-07-18 13:38:06 +02:00
Łukasz Paczos
048a07e3c9 [android] fail MapSnapshotter test in case of an error returned from core 2019-07-18 10:54:39 +02:00
Jason Wray
19aa8060b3 [ios] Prepare ios-v5.2.0-beta.1 release 2019-07-17 16:51:59 -07:00
Aleksandar Stojiljkovic
ae38a22dc1 [core] Fix collision with content insets
Viewport center offset usage was wrongly submitted in #14664. It was part of alternative approach that used enlarged viewport. Existing and added tests were not sufficient to spot the regression, since the collision check padding is usually larger than the center offset x and y. Annotation picking has tolerance of only 10 pixels but no annotation integration test was using content insets.

Usage of offset is not needed because `posMatrix` in e.g. `CollisionIndex::projectPoint(const mat4& posMatrix, const Point<float>& point)` already incorporates center offset (projection matrix) and the code in current master was just offsetting all by the value.

Modified [ios] MGLAnnotationViewIntegrationTests.testSelectingAnnotationWithCenterOffset to use different insets. It verifies the fix.

Fixes [iOS] Annotations are not selectable (added via iosapp menu) #15106:

In case of #15106, view's original content insets is {top:88, bottom:34}, causing that center offset is {x:0, y:27} and selection with tolerance of 10 wouldn't select annotation.
After tapping the view, so that the header gets removed, view's content insets get changed to {top:44, bottom:34}, center offset is {x:0, y:5} and annotation selection would work, as described in #15106.

Fixes: #15106
2019-07-17 16:13:33 -07:00
Jordan Kiley
8fe469f6b1 [ios] Add changelog entry for Cache Management API (#15131) 2019-07-17 13:55:11 -07:00
Nadia Barbosa
54fb5b046e [ios, macos] Update Jazzy theme (#15125)
* [ios, macos] Update Jazzy theme

module_version -> module-version

* Update platform/macos/scripts/document.sh
2019-07-17 13:02:30 -07:00
Jason Wray
5b820a926d [ios] Add MGLMapViewZoomTests 2019-07-17 12:38:15 -07:00
Jason Wray
866aa6a6f1 [ios] Check center coordinate in MGLMapViewDirectionTests 2019-07-17 12:38:15 -07:00
Jason Wray
4e1ba601b3 [ios] Clean-up direction and compass tests 2019-07-17 12:38:15 -07:00
Łukasz Paczos
3ced4a943b [android] update Bintray's package name 2019-07-17 17:17:03 +02:00
Mikhail Pozdnyakov
f63a906ea1 Bump mapbox-gl-js version 2019-07-17 14:52:47 +03:00
Heather Stenson
5f6f20e667 [ios, macos] Change "map ID" to "tileset ID" (#15116)
* map id --> tileset id

* styles map id -> style url

* update changelog
2019-07-16 18:36:07 -07:00
Jordan Kiley
9d8839c4b8 [ios] Cache Management API (#14978) 2019-07-16 14:58:32 -07:00
tobrun
0baa54a194 [android] - create map snapshot from testcase 2019-07-16 17:06:19 +02:00