Commit Graph

2355 Commits

Author SHA1 Message Date
Jason Wray
c4f992e489 [ios] Remove obsolete iosapp telemetry debug logging
This has been superceded by features in the standalone events library.
2019-08-21 12:14:20 -07:00
Jason Wray
0e57c7de44 [ios] Refactor NSUserDefaults key variable names 2019-08-21 12:14:20 -07:00
Julian Rex
c3cd9002f0 [ios] Fix integration tests failing on iOS 9 (due to UIWindow deallocation), and random fails waiting for rendering. (#15433) 2019-08-21 14:23:33 -04:00
Ansis Brammanis
ba2d80441e [core] add missing changelog for symbol fading issue (#15443) 2019-08-21 10:54:02 -07:00
Mikhail Pozdnyakov
4767b561e8 [android][ios] Add change log entries 2019-08-21 12:00:26 +03:00
Jordan Kiley
6f78560f24 [ios] Add threshold for triggering the rotate gesture recognizer (#14929) 2019-08-20 22:12:08 -07:00
Jason Wray
2f43a7b87b [ios] Updates for offline pricing 2019-08-20 17:21:55 -07:00
Jordan Kiley
5d1ed5d941 [ios] Fix bug where scale bar shows 0 mm instead of 0 (#15381) 2019-08-20 10:48:26 -07:00
Julian Rex
90e26244a5 [ios] Removes mismatched function declaration. (#15423) 2019-08-20 11:55:18 -04:00
Julian Rex
c0cd8d021d [ios] Adds annotation selection tests with rotation & scaling of the map (#15123) 2019-08-20 10:51:14 -04:00
Alexander Shalamov
1625aa0000 [ios][macos][android][node] Update changelog for icon-text-fit fixes 2019-08-20 12:31:02 +03:00
Jason Wray
f4e187bde4 [ios, docs] Update CocoaPods installation instructions 2019-08-19 09:17:39 -07:00
Thiago Marcos P. Santos
0bdc5a2558 [ios,android] Added changelog entry for use after std::move fix 2019-08-19 13:37:23 +03:00
Mikhail Pozdnyakov
13fd3ad181 [android][ios] Add change log entry 2019-08-16 18:33:30 +03:00
Jordan Kiley
cb186aa33d [ios] Release v5.3.0-alpha.3 (#15379) 2019-08-14 15:03:41 -07:00
Mikhail Pozdnyakov
12615d4927 [ios][Android] Add changelog entries 2019-08-13 15:20:46 +03:00
Alexander Shalamov
75874cb546 [macos][ios][android][node] Add changelog entry for text-writing-mode layout property 2019-08-13 13:32:56 +03:00
Alexander Shalamov
0ff218d688 [darwin] Add plural override for 'text-writing-mode' layout property 2019-08-13 13:32:56 +03:00
Jason Wray
ee1b4948e2 [ios] Bump to libmbxaccounts 1.0.1 2019-08-12 13:35:07 -07:00
Jason Wray
bbaf1ee1ad [ios] Minor style edits to changelog 2019-08-08 18:13:17 -07:00
Aleksandar Stojiljkovic
7cdeed7cb4 Changelog entries and a nit for #15281 2019-08-08 12:14:48 +03:00
Jordan Kiley
d8d685de35 [ios] Release v5.3.0 alpha.2 (#15336)
* [ios] Update podspecs

* [ios] Update changelog

* Update platform/ios/CHANGELOG.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/ios/CHANGELOG.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>
2019-08-07 15:33:43 -07:00
Jordan Kiley
acfcd5c29c [ios] Document how scale bar visibility is determined (#15304)
* [ios] document scale bar visibility

* [ios] finished trailing sentence
2019-08-05 10:48:54 -07:00
Aleksandar Stojiljkovic
75453cc587 [core] revert platform/ios/vendor/mapbox-events-ios change submitted 2019-08-01 12:18:59 +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
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
Jason Wray
b6dd995813 [ios, build] Stop copying iosapp token script into framework 2019-07-26 12:38:52 -07: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
Mikhail Pozdnyakov
fd8891c12c [ios][andoid] Add change log entry 2019-07-22 10:41:03 +03: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
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
m-stephen
d2434d0751 [ios , macos] Exclude CJK resources from offline download by default (#14952)
* [iOS, macOS] exclude CJK glyphs resources download by default.

* [iOS, macOS] update iosapp

* [iOS, macOS] update macOS

* [iOS, macOS] update iOS change log

* [iOS, macOS] update macOS change log

* [iOS, macOS] update comment & add test cases

* Update platform/darwin/test/MGLOfflineRegionTests.m

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/darwin/test/MGLOfflineRegionTests.m

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/darwin/test/MGLOfflineRegionTests.m

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/ios/CHANGELOG.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/macos/CHANGELOG.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/darwin/test/MGLOfflineRegionTests.m

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>
2019-07-16 11:39:34 +08:00
Julian Rex
3c488e05ef [ios] Adds thread safe access to MGLNetworkConfiguration events dictionary (#15113) 2019-07-15 21:11:17 -04:00
Julian Rex
dae803f81d Added changelog entry 2019-07-14 22:20:56 +03:00
Aleksandar Stojiljkovic
d968cbba15 [ios][macos] Fix center coordinate incorrect after pinch gesture
To changelog:
Fixed incorrect center coordinate after pinch regression caused by edge insets fix (#14664).

While working on #14664, missed to understand the logic used in

```
                CLLocationCoordinate2D centerCoordinate = _previousPinchCenterCoordinate;
                mbgl::EdgeInsets padding { centerPoint.y, centerPoint.x, self.size.height - centerPoint.y, self.size.width - centerPoint.x };
                self.mbglMap.jumpTo(mbgl::CameraOptions()
                                        .withCenter(MGLLatLngFromLocationCoordinate2D(centerCoordinate))
                                        .withPadding(padding));

```

Replacing this code by moveBy achieves the required translation.

Fixes: #14977, #15082
2019-07-14 22:20:56 +03:00
Mikhail Pozdnyakov
a0e2064f75 [ios][android] Change log update 2019-07-12 19:38:23 +03:00
Jason Wray
5b488225fb [ios] Add MGLCompassButton and MGLOrnamentVisibility 2019-07-11 16:06:54 -07:00
Mikhail Pozdnyakov
d8d64cadda [ios][android] Changelog update 2019-07-11 15:36:28 +03:00