Commit Graph

625 Commits

Author SHA1 Message Date
Julian Rex
2deebc0efe [ios] Check supported interface orientations when rotating device/view layout (#13900) 2019-02-11 23:07:15 -05:00
Felix Wehnert
57438c2a7e [ios] Improve tilt gesture performance (#13902) 2019-02-11 17:28:44 -08:00
Julian Rex
5ba4a6a980 [ios] Reverts "Enable customize positions of mapview ornaments (#13556)" (#13870)
This reverts commit e22d28c285.
2019-02-05 13:50:12 -05:00
Jason Wray
c49898a5ca [ios, docs] Fix types in jazzy Swift declarations for MGLMapViewDelegate
Also, fix highlighting for one thing.
2019-02-04 10:17:51 -08:00
Fabian Guerra Soto
d7f71a2399 [ios] Fix the user location not getting displayed when setting tracking mode to followWithCourse and followWithHeading (#13849)
Removed legacy code that was causing the mapView to ignore setting the user location to tracking modes follingWithCourse and followWithHeading.
2019-02-01 11:59:26 -08:00
Josh Erb
5d891b4b2a [ios][documenation] add additional code snippets to API docs 2019-01-30 13:18:45 -05:00
Lloyd Sheng
e22d28c285 [ios] Enable customize positions of mapview ornaments (#13556)
* APIs for customize positions of ornaments

* Adopt anchors layout

* Remove iOS8 layout code
2019-01-30 15:39:29 +08:00
Jason Wray
44fbba8514 [darwin, docs] Improve method/property linking in jazzy 2019-01-29 16:06:10 -08:00
Jason Wray
67e5761e72 [ios] Update more URLs to docs.mapbox.com/ios 2019-01-25 11:57:45 -08:00
Nadia Barbosa
332c1ac96a [ios] Fix links in documentation
[ios] Update to docs.mapbox.com

Update links
2019-01-23 13:16:28 -08:00
Fabian Guerra Soto
0226a0f81a [ios] Fix wrong coordinates bounds when setting direction. (#13761)
Fixes an issue calculating the view port when setting visible coordinates with a direction.
2019-01-22 16:19:08 -08:00
Fabian Guerra Soto
ca129e0c79 [ios, macos] MGLMapView logging improvements. (#13776)
Added NSEdgeInsets to NSString function to improve the debugging on macOS.
Added debug logs to MGLMapView.
2019-01-22 15:42:28 -08:00
Julian Rex
b460efdf00 [ios] Partially offscreen annotations (without callouts) are no longer moved on-screen (#13727) 2019-01-22 17:45:06 -05:00
Minh Nguyễn
6960cb13f7 [ios] Prevent map view on external display from sleeping in background
When the application enters background mode, only put the map view to sleep if it’s installed on the main screen or hasn’t been added to any window. Otherwise, if it’s targeting an external display, such as via AirPlay or CarPlay, allow the map view to continue rendering.
2019-01-14 15:07:43 -08:00
Julian Rex
c8c664fbf3 [ios, macos] Support getLeaves (and related) clustering methods (#12952) following feature extension API (#13382) 2019-01-14 15:17:13 -05:00
Julian Rex
53e20430c8 [ios, macos] Fixes a bug where the animated parameter of -[MGLMapView selectAnnotation:animated:] was ignored. (#13689) 2019-01-09 13:07:00 -05:00
Julian Rex
76b3bb9d20 [ios, macos] Added missing mapViewDidBecomeIdle for iOS. Fixed typo. (#13666) 2019-01-04 09:15:59 -05:00
Chris Loer
662a495561 [docs] EnterIdle -> BecomeIdle 2018-12-11 11:46:16 -08:00
Chris Loer
70c2d5a4ca [core, darwin, android] Add onDidEnterIdle to MapObserver.
didEnterIdle fires whenever render completes and no repaint is scheduled.
2018-12-11 11:46:16 -08:00
Minh Nguyễn
04c70f55a5 [ios] Announce POI categories where available 2018-12-08 02:18:56 -08:00
Minh Nguyễn
3dffb1fd53 [ios] Added CJK string transforms 2018-12-08 02:18:56 -08:00
Bruno de Oliveira Abinader
e8f7866e9e [core] Remove error-prone setlatLng overload 2018-11-27 21:38:36 +02:00
Julian Rex
53bbf9d699 [ios] Added teardown of core objects when receiving UIApplicationWillTerminateNotification (#13367) 2018-11-20 14:31:09 -05:00
Jason Wray
950c7b75e6 [ios] Remove deprecated -[MGLMapView setDebugActive:] implementation 2018-11-20 11:48:18 -05:00
Jason Wray
ddcecdf7f7 [darwin] Rename variables to avoid shadow declarations
Per GCC_WARN_SHADOW.
2018-11-20 11:48:18 -05:00
Jason Wray
4519f8a867 [darwin] Fix typos in pragma diagnostic declarations
Per GCC_WARN_UNKNOWN_PRAGMAS.
2018-11-20 11:48:18 -05:00
Jason Wray
83ecb76562 [darwin] Fix GCC_WARN_SIGN_COMPARE warnings 2018-11-20 11:48:18 -05:00
Nadia Barbosa
569dc0d785 [ios] Don't pause camera animations when zoom/pitch/rotate/scroll are disabled
[ios] Move up code

[ios] Changelog

newline
2018-11-19 12:48:22 -08:00
Fabian Guerra Soto
c8fbcfd322 [ios, macos] Logging. (#13235)
* [ios, macos] Update the logging subsystem to platform agnostic.

* [ios, macos] Add coordinate to string function.

* [ios, macos] Add BOOL to string function.

* [ios, macos] Add tracing logs.

* [ios, macos] Add tracing logs to generated style classes.

* [ios, macos] Split logging categories accordingly to MGLLoggingLevel.

* [ios, macos] Log network requests.

* [ios, macos] Migrate NSAssert to MGLAssert.

* [ios, macos] Include MGLLoggingConfiguration to filesource-files.txt.

* [ios, macos] Fix logger string specifier for the line parameter.

* [ios, macos] Add logs to shapes classes.

* [ios, macos] Add logs to offline classes.

* [ios, macos] Add logs to annotation classes.

* [ios, macos] Add logs to foundation classes.

* [ios, macos] Fix snapshotter size logging.

* [macos] Add logs to map view.

* [ios, macos] Fix string from boolean prefix, add custom function for NSCAssert.

* Log size test

* [ios, macos] Add logging conditional compilation flag.

* [ios, macos] Rename function NSStringFromMGLTransition to MGLStringFromMGLTransition.

* [ios, macos] Remove verbose logging for release builds.

* [ios, macos] Rename NSStringFromCLLocationCoordinate2D to MGLStringFromCLLocationCoordinate2D.

* [ios, macos] Clean unnecesary blank lines in MGLLight.mm set methods.

* [ios, macos] Fix logging grammar, format, function names.

* [ios, macos] Remove compilation flag, rename flags.
2018-11-14 15:42:18 -08:00
Josh Erb
b891a8d6b0 [ios][documentation] link API documentation to ios-sdk/examples 2018-11-13 11:39:39 -08:00
Bruno de Oliveira Abinader
bf8b24fa8d [build] Update to geometry v1.0.0 2018-11-13 17:28:26 +02:00
Minh Nguyễn
8c15911717 [ios, macos] Removed extraneous radian-degree conversions 2018-10-26 16:25:29 -07:00
Fabian Guerra
064d8b9aa8 Add a custom logging for the Mapbox Maps SDK for iOS. 2018-10-26 12:45:14 -07:00
Josh Erb
2d471da9ce [ios][documentation] add two links for delegates
* MGLMapView <-> MGLMapViewDelegate
* MGLCalloutView <-> MGLCalloutViewDelegate
* MGLLocationManager <-> MGLLocationManagerDelegate
2018-10-24 13:24:23 -04:00
Bruno de Oliveira Abinader
98c36fc06e [core] CameraOptions receives and outputs angle and pitch as degrees, not radians 2018-10-19 12:05:16 +02:00
Jason Wray
90ccf22dec [ios] Fix divide-by-zero when setting FPS on iOS <10 2018-10-09 11:30:36 -04:00
Jason Wray
33f2ae0f3f [ios] Add support for Simulator in UIDevice.mgl_isLegacyDevice 2018-10-09 11:30:36 -04:00
Jason Wray
91ea258dde [ios] Ignore deprecation warnings for MGLMapView.userLocationVerticalAlignment 2018-10-05 18:34:03 -04:00
Nadia Barbosa
7b243392e3 [ios] Add delegate method to specify the user location annotation’s position
Update method name

More API drafting

Add deprecation flag

Add Swift delegate integration test

Update method name and documentation

Update deprecation notices

Update method name

Offset anchor point relative to contentFrame

Update docs

Only run through switch statement if delegate is unimplemented

Account for content inset + refactor logic

Adjust edgePaddingForFollowing

Fix Swift delegate integration test

Set up integration test

Set up test location manager

.

Remove unused file reference from test

Return CGPoint value from delegate method within integration test setup

Test anchor points

Make updateUserLocationAnnotationView public

Refactor test

Update test location manager

Changelog entry

Doc fixes
2018-10-02 18:28:53 -04:00
Minh Nguyễn
a030f1474f [ios, macos] Distinguish between viewing distance and altitude
+[MGLMapCamera cameraLookingAtCenterCoordinate:fromDistance:pitch:heading:] incorrectly treated the distance as an altitude. Due to backwards compatibility concerns, this method can’t be fixed in place. Instead, separate +[MGLMapCamera cameraLookingAtCenterCoordinate:correctlyFromDistance:pitch:heading:] and +[MGLMapCamera cameraLookingAtCenterCoordinate:altitude:pitch:heading:] methods have been added.
2018-10-01 18:12:03 -07:00
Jason Wray
93eeedc8f5 [ios] Enable 120fps on capable devices 2018-09-26 15:25:23 -07:00
Fabian Guerra Soto
57837443bb [ios, macos] Add crossSourceCollissions property. (#12941)
* [ios, macos] Add crossSourceCollissions property.

* [ios, macos] Add perSourceCollisions property.

* [ios, macos] Update changelogs.
2018-09-26 15:17:30 -07:00
Julian Rex
a995977312 [ios] Fix for user location annotation jittering (and view annotations lagging) (#12895) 2018-09-26 12:19:26 -04:00
Nadia Barbosa
7017ac512e [ios, macos] Allow -convertCoordinateBounds to span antimeridian 2018-09-04 18:57:18 -07:00
Jordan Kiley
7fc872b797 Add enabled property to MGLShape (#12352)
* [ios, macos] Add -[MGLMapViewDelegate mapView:canSelectAnnotation:] method.

* [ios, macos] Update changelogs.

* [ios, macos] Add mapView:canSelect: integration tests.

* [ios, macos] Change semantics to shape annotations.

* [ios, macos] Update changelogs.

* [ios, macos] Update shapeAnnotationIsEnabled documentation, improve code readability.
2018-08-20 16:30:03 -07:00
Ivo van Dongen
ca0f2f925d [darwin] arbitrary offline region geometries 2018-08-20 22:49:01 +03:00
Jason Wray
790b9f5c82 [ios] Add experimental frame rate measurements to MGLMapView
Includes: average frame rate, average frame render duration, and instantaneous frame render duration.
2018-08-16 16:46:54 -04:00
Jason Wray
ec7b920603 [ios] Standardize exception definitions 2018-08-09 13:35:28 -04:00
Jason Wray
a84d59f2a2 [ios] Add MGLMapViewDecelerationRate typed enum
Improves Swiftiness by allowing type-omission, à la `mapView.decelerationRate = .fast` and such.
2018-08-09 11:05:20 -04:00
Fabian Guerra
62fb7e1987 [ios] Fix location manager null reset. 2018-08-01 10:21:34 -07:00