Commit Graph

2298 Commits

Author SHA1 Message Date
Fabian Guerra Soto
12e0a6b0c6 [ios] Add removeStyleImage to MGLMapView (#14769)
* [ios] Add shoulRremoveStyleImage to MGLMapViewDelegate.

* [ios] Changelog update.

* [ios, macos] Update shouldRemoveStyle method documentation.
2019-07-02 16:33:09 -07:00
Jason Wray
3b1d437460 [ios, build] Add podspec lint script 2019-07-02 12:22:03 -07:00
Jason Wray
93ecf9ae30 [ios, build] Stop packaging local podspec with releases 2019-07-02 11:43:01 -07:00
Mikhail Pozdnyakov
664c50f3bd [core] Update changelog files 2019-07-02 16:05:09 +03:00
Jason Wray
98a5c64d34 [ios] Fix ios-v5.2.0-alpha.1 podspec versions
Versions had a period instead of a dash between the numbers and pre-release string.
2019-06-26 16:50:01 -07:00
Jason Wray
f17154d7dc [ios] Release ios-v5.2.0-alpha.1 2019-06-26 14:16:58 -07:00
Jason Wray
e26a60d0c9 [ios] Remove previously deprecated unavailable methods and properties 2019-06-26 13:36:30 -07:00
Jason Wray
8a9567e072 [ios, macos] Deprecate methods in favor of new completion handler versions 2019-06-26 12:18:22 -07:00
Jason Wray
290a9fcad5 [darwin] Add warning about certain tests requiring en_US locale 2019-06-24 16:52:17 -07:00
Minh Nguyễn
f7f74a6deb [ios, macos] Added completion handlers to animated MGLMapView methods 2019-06-21 17:45:36 -07:00
Julian Rex
c40b7279a2 [ios] Fix failing annotation selection integration tests (#14976) 2019-06-21 20:34:33 -04:00
Jason Wray
b98dbd2121 [ios] Require two fingers for duration of tilt gesture 2019-06-20 10:33:32 -07:00
Jason Wray
3d6da49073 [ios] Address iosapp state manager tailwork 2019-06-19 16:35:26 -07:00
Jason Wray
3f9fd46fd4 [ios] Prepare for ios-v5.1.0 release 2019-06-19 13:22:33 -07:00
Jason Wray
bd481b1d60 [ios, build] Add more specific iOS testing flags 2019-06-18 17:45:28 -07:00
Jason Wray
1cfb0ed10d [ios, build] Add MORE_SIMULATORS option to iOS make commands 2019-06-14 15:23:16 -07:00
Julian Rex
823670ea35 [ios, macos] Optionally include a developer xcconfig file in generated config.xcconfig file. (#14766) 2019-06-14 16:47:48 -04:00
Jason Wray
9872416c1f [build, darwin] Enable aggressive API usage warnings 2019-06-14 09:20:10 -07:00
Fabian Guerra
d7ac45da33 [ios] Bump podspec to v5.1.0-beta.1 2019-06-13 15:44:51 -07:00
Nadia Barbosa
92f282b52d [iosapp] Introduce map state manager (#14591) 2019-06-13 09:35:41 -07:00
Mikhail Pozdnyakov
6b7d3a16c0 [android][mac][ios] Update changelogs 2019-06-12 20:39:03 +03:00
Konstantin Käfer
d372124219 [ios] fix benchmark app 2019-06-12 18:08:18 +02:00
Julian Rex
edd04d31eb [ios] Added offline query parameter (#14857) 2019-06-11 18:22:20 -04:00
Fredrik Karlsson
ad1b448da5 [ios] get sku token return value 2019-06-11 18:35:07 +02:00
Fabian Guerra
75659e26b8 [ios] Bump podspec to v5.1.0-alpha.2 2019-06-06 14:59:45 -07:00
Alf Watt
9ebd831e32 [ios] Integrate Mapbox Mobile Events 0.9.4 (#14868)
* [ios] Mapbox Events 0.9.4

* Run `scripts/generate-file-lists.js`

* Explicitly use the shared manager instead of init

* There can be only one `Scripts`
2019-06-06 13:43:23 -07:00
Jason Wray
bd3d19f5bd [ios] Update libmbxaccounts for navigation SDK override (#14802)
* Use a stringy selector... yerg.
* Bump to libmbxaccounts 1.0.0
2019-06-05 23:13:34 -07:00
Alexander Shalamov
a5f7f73dfe [ios] Update changelog for #14810 2019-06-05 00:03:13 -07:00
Alexander Shalamov
a71ccae141 [ios] Add integtation test that verifies MGLMapViewImpl size 2019-06-05 00:03:13 -07:00
Alexander Shalamov
0ba0b8c040 [ios] Calculate size of a MGLMapViewOpenGLImpl renderable from MGLMapView bounds
Fixes: #14807
2019-06-05 00:03:13 -07:00
Jason Wray
015a64b2a2 [ios] Fix undeclared selector warning in MGLAnnotationView
`setCoordinate:` isn't available to regular MGLAnnotation, only MGLPointAnnotation.
2019-06-03 16:49:42 -07:00
Fabian Guerra Soto
402645109f [ios] Fix content insets with custom edge padding. (#14813)
* [ios] Fix content insets with custom edge padding.

* [ios, macos] Consolidated edge insets math

* [macos] Add content insets to edge padding when setting camera

* [ios, macos] Updated changelogs

* [ios, macos] Clarify setCamera:withDuration:animationTimingFunction:edgePadding method documentation.
2019-06-03 07:32:20 -07:00
Aleksandar Stojiljkovic
1637a4b694 [ios] Content insets border case fix and comment.
Allows changing camera when user duplicates content insets.

Related to previous patch and comment:
https://github.com/mapbox/mapbox-gl-native/pull/14664#pullrequestreview-243004376
Thanks @1ec5
2019-06-03 08:55:39 +03:00
Fabian Guerra Soto
316584fabc [ios] Bump podspec to v5.1.0-alpha.1 (#14800)
* [ios] Podspec bump to v5.1.0-alpha.1

* [ios] Update changelog.
2019-05-29 14:29:11 -07:00
Konstantin Käfer
9eb43a587b [ios,macos] refactor MGLMapViewImpl 2019-05-29 18:27:42 +02:00
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