Commit Graph

2263 Commits

Author SHA1 Message Date
Aleksandar Stojiljkovic
e5431d0181 Asymmetric viewport changelog entry
Check edge insets difference, in addition to isEqualToMapCamera in all the places in MGLMapView before map.easeTo/map.flyTo.
2019-05-28 14:38:01 +03:00
Aleksandar Stojiljkovic
9809c9f8f5 [core] Offset viewport center when edge insets are specified
The change is implemented in TransformState::getProjMatrix, the rest of the code is making sure that existing API contracts stay and there are tests verifyingrendering and render query processing only items within screen and given tolerance around screen edges.

MapView: don't bake edge insets into relalculated camera center. Keep edge insets as property of camera in TransformState (similar to pitch, zoom, bearing) independent from specified camera center. Interpolate edge insets in animation.

iOS Demo app: "Turn On/Off Content Insets" pitch the camera and navigate to convenient location in Denver, where streets are parallel to cardinal directions, to illustrate viewport center offset when edge insets are set.

Tests:
ViewFrustumCulling: although Annotations are deprecated, queryRenderedFeatures related tests in Annotations would need to get ported and decided to add the edge insets related query tests next to them. Verify frustum culling (render+queryRenderedFeatures) With different camera and edge insets setups. TODO: port Annotations tests.

Transform.Padding: Verify that coordinates take proper place on screen after applying edge insets.

LocalGlyphRasterizer: verify text rendering when applying padding.

Related to #11882: both use projection matrix elements [8] and [9].

Alternative approach to this was to increase and offset map origin so that the screen would be a sub-rectangle in larger map viewport. This approach has a drawback of unecessary processing the items that are outside screen area.

Fixes #12107, #12728, navigation-sdks/issues/120
2019-05-28 14:38:01 +03:00
Jason Wray
9229556dd9 [ios, build] Specify Mapbox development team for project iOS apps 2019-05-24 13:28:11 -07:00
Nadia Barbosa
a4380fd08c [ios] Add missing tick to Podspec specification (#14729)
* [ios] Add missing tick to Podspec specification

* [ios] Remove unnecessary parenthesis from link in changelog
2019-05-22 15:00:31 -07:00
Nadia Barbosa
e2ed9833c4 [ios] Podspec & changelog updates for v5.0.0 (#14717)
* [ios] Podspec bumps for v5.0.0

* [ios] Update changelog for 5.0.0
2019-05-21 17:42:33 -07:00
Jason Wray
29140f5b11 [ios] Enable SKU tokens for all requests
Removes conditional code that relied on a plist flag. Other small cleanups.
2019-05-20 22:49:50 -07:00
Aleksandar Stojiljkovic
3cd8c6c1fd [core] Refactor HeadlessFrontend/Backend: GL separation and factory (#14692)
Refactor out HeadlessFrontend and HeadlessBackend gl independent code to gfx.
Define gl::HeadlessBackend as subclass, instantiated by gfx::HeadlessBackend static factory method.
GL dependent tests are still using gl::HeadlessBackend directly (not through gfx).
2019-05-21 07:37:49 +03:00
Nadia Barbosa
a0467ca76d [ios] Podspec updates for v4.12.0-beta.1 2019-05-16 15:03:54 -07:00
Jason Wray
6e92ca5de3 [ios] Update to libmbxaccounts 0.0.5 (#14683) 2019-05-16 09:43:42 -04:00
Sam Fader
163c085c38 [ios, macos] clarified documentation for newCamera param of the shouldChangeFromCamera delegate (#14680)
* [ios, macos] clarified documentation for newCamera in shouldChangeFromCamera

* [ios, macos] clarified documentation for newCamera param of the shouldChangeFromCamera delegate part 2
2019-05-15 18:30:28 -07:00
Fabian Guerra
295ce38f2b [ios] Update podspec to v4.11.0. 2019-05-15 14:34:54 -07:00
Minh Nguyễn
615c5387fc [macos] Copyedited changelog
Synchronized the changelog with the iOS changelog. Removed some entries about internal changes or iOS-only changes. Recategorized entries.
2019-05-10 08:08:51 -07:00
Thiago Marcos P. Santos
06f1dc48a2 [core] Make the BackgroundScheduler a singleton
- Do not carry it over everywhere as parameter, it is a shared
  instance anyway and the lifecycle is pretty much the app lifecycle
  from the moment we instantiate a map.
- Rename to BackgroundScheduler because it is a Scheduler that will
  do tasks in the background, we don't make assumptions if it is a
  thread pool or a single thread.
- Most importantly, remove the dependency from `core` on `platform`.
2019-05-10 14:20:38 +03:00
Jason Wray
49b8e0a626 [ios] Remove obsolete telemetry gesture events 2019-05-09 14:52:44 -07:00
Nadia Barbosa
fc218f8209 [ios] Podspec & changelog updates for v4.12.0-alpha.2 2019-05-08 12:55:12 -07:00
Minh Nguyễn
e69efb996d [ios] Interpret negative direction as unchanged when setting visible coordinates (#14575)
* [ios] Fixed negative direction when setting visible coordinates

* [ios] Document behavior of negative direction
2019-05-03 09:02:03 -07:00
Julian Rex
359f2bb743 [ios] Uppercase'd "string" to remove cmake warning (#14576) 2019-05-03 10:45:11 -04:00
Julian Rex
f7915fdc51 [ios] Static analysis fix tweaks - part 2 (#14572) 2019-05-02 14:08:48 -04:00
Nadia Barbosa
3e4afbc788 [iosapp] Move token setting to build script
[ios] Switch to script-based token insertion for benchmarking app

[ios] Update Developing.md

[iosapp, benchmark app] Look for token file outside of version-controlled directory

[iosapp, benchmark app] Remove remaining code for access token checking from app delegates

Feedback edits for @friedbunny
2019-05-01 18:30:46 -07:00
Nadia Barbosa
8b91a4a037 [ios] Add changelog header for v4.12.0-alpha.1 2019-05-01 16:12:15 -07:00
Nadia Barbosa
5b28c1eb9c [ios] Update Podspecs for v4.12.0-alpha.1 2019-05-01 15:15:12 -07:00
Julian Rex
d5822ab386 [ios] Update podspecs for 4.11.0-beta.2 (#14556) 2019-05-01 15:10:53 -04:00
Julian Rex
9bd59bf041 [ios, macos] Fixes for static analyzer warnings (#14453) 2019-04-30 17:08:37 -04:00
Julian Rex
b15b78346f [ios] Check for valid superview to avoid crash on iOS 9 (#14529) 2019-04-30 16:11:14 -04:00
Jason Wray
7263c7973b [ios] Remove events=true from new SKU requests 2019-04-29 15:12:38 -07:00
Jason Wray
9ad89cf8d7 [ios] Update to libmbxaccounts-v0.0.4 2019-04-29 15:12:38 -07:00
Julian Rex
12428ef05d [ios] Preparation for v4.11.0-beta.1 release. (#14503) 2019-04-24 16:56:28 -04:00
Julian Rex
43553c37e9 [ios] Enable/Disable sku token handling (#14467) 2019-04-24 14:40:45 -04:00
Fabian Guerra Soto
88a6525427 [ios] Make MGLLocationManager protocol swift friendly. (#14477)
Improved MGLLocationManager protocol bridging to swift.

* [ios] Make MGLLocationManager protocol swift friendly.

* [ios] Update changelog.
2019-04-24 09:12:45 -07:00
Jason Wray
a46957e0c7 [ios, build] Update to libmbxaccounts v0.0.2 (#14462) 2019-04-19 09:58:53 -04:00
Jason Wray
d5569f4b01 [ios] Add SKU tokens to all Mapbox requests (#14421) 2019-04-17 18:27:54 -07:00
Jordan Kiley
b3b62f4d5a [ios] Fix iOS Changelog on master (#14455) 2019-04-17 22:53:02 +01:00
Jordan Kiley
3f769c248d [ios] Bumped podspecs and changelog for v4.10.0 (#14452) 2019-04-17 21:52:43 +01:00
Julian Rex
dfb88e3541 [ios] Consider anchored UIView callouts when deciding whether to enable presentsWithTransaction (#14445) 2019-04-17 15:06:46 -04:00
Julian Rex
425553646b [ios] Ensure glFinish is called when going into the background, and block rendering in the background (#14439) 2019-04-16 22:49:34 -04:00
Nadia Barbosa
2ee967a036 [ios, macos] Premultiply color values for mgl_color
Fixes https://github.com/mapbox/mapbox-gl-native/issues/14329
2019-04-12 11:07:46 -07:00
Konstantin Käfer
e95bf4dd9b [ios] run glFlush when reducing memory and don't reduce memory while in background (#14383) 2019-04-11 09:57:35 -04:00
Lloyd Sheng
8c5c4dd565 [ios] Fix issue wrong position of attribution dialog after rotation (#14185)
* Fix issue #12897
2019-04-11 16:48:53 +08:00
Julian Rex
82b5d8e5c7 [ios] Updated podspecs for v4.11.0-alpha.2 (#14391) 2019-04-10 19:13:49 -04:00
Randall Lee
1bd23e2182 [iOS] Events submodule update (#14388)
* [iOS] Update Events submodule to v0.9.3

Internal change -- shouldn't require changelog notes.
2019-04-10 17:50:40 -04:00
Fabian Guerra Soto
2f0af0e8f4 [ios] Deactivate MGLMapView IBDesignable (#14379)
Removed MGLMapView's IBDesignable attribute. The map's view render attributes
uses GL, making changes through the inspectables were not reflected in the storyboard
and were causing IB crashes.

* [ios] Deactivate MGLMapView IBDesignable.

* [ios] Remove IBDesignable agent code.

* [ios, macos] Remove NSProcessInfo category from iOS.
2019-04-10 13:01:59 -07:00
Jason Wray
264db54f10 [ios, build] Install latest jazzy, if not already installed 2019-04-10 12:38:36 -07:00
Jason Wray
d04b4844dd [ios, build] Bump to jazzy 0.9.6 2019-04-10 12:38:36 -07:00
Fabian Guerra Soto
8389e746b6 [ios, macos] Add Mapbox Maps SDK metrics manager. (#13997)
Added MGLSDKMetricsManager to keep track of SDK related events such as tile download times.

* [ios, macos] Add tile download performance event.

* [ios, macos] Modify the performance event format.

* [ios, macos] Add Mapbox Maps SDK events manager.

* [ios, macos] Remove events delegate.

* [ios, macos] Remove deprecated macro.

* [ios, macos] Rename MGLEventsManager to MGLMetricsManager.

* [ios, macos] Make MGLMetricsDelegate follow delegate convention.

* [ios, macos] Remove mbgl-filesource target dependency on MGLMetricsManager.

* [ios, macos] Update metrics manager documentation.

* [ios, macos] Add device metadata.

* [ios, macos] Rename MGLMetricsManager to MGLSDKMetricsManager.
2019-04-09 16:10:14 -07:00
Nadia Barbosa
9c8ee53cd8 Bump Podspecs & changelog for ios-v4.10.0-beta.3 2019-04-05 15:48:50 -07:00
Konstantin Käfer
1d58850d0c [core] remove Renderer::flush 2019-04-05 11:49:17 +02:00
Konstantin Käfer
5cc3d7a733 [core] move GLContextMode to RendererBackend 2019-04-05 11:49:17 +02:00
Konstantin Käfer
66c020034e [core] refactor RendererBackend 2019-04-05 11:49:17 +02:00
Konstantin Käfer
a782a6d15b [core] move BackendScope to gfx namespace 2019-04-05 11:49:17 +02:00
Jason Wray
4a36d848ce [ios] Bump to v4.11.0-alpha.1 2019-04-03 16:28:26 -07:00