summaryrefslogtreecommitdiff
path: root/platform/ios/src
Commit message (Collapse)AuthorAgeFilesLines
* [ios] Made reason bitmask private, created public enum, and provided a ↵upstream/jrex-10674-enumJulian Rex2018-02-125-55/+177
| | | | mapping from the bitmask to enum
* [ios] Removed mapView:didSingleTapAtCoordinate:Julian Rex2018-02-092-32/+1
|
* [ios] Renamed delegate methods' "for" to "with"Julian Rex2018-02-092-72/+61
|
* [ios] Fixed issue with quick zoom not firing if new single tap delegate ↵Julian Rex2018-02-091-4/+6
| | | | method is implemented.
* [ios] Switched MGLCameraChangeReason to use NS_OPTIONS to allow multiple ↵Julian Rex2018-02-094-94/+84
| | | | reasons to be specified (e.g. concurrent pan/rotate)
* [ios] Re-adds missing check for conformance, and addresses some ci test issues.Julian Rex2018-02-091-1/+1
|
* [ios] Additional comments about single tap delegate method vs gestures.Julian Rex2018-02-091-2/+19
|
* [ios] Added:Julian Rex2018-02-094-42/+281
| | | | | | - MGLCameraChangeReason constants - New camera change delegate methods with reason parameters. - mapView:didSingleTapAtCoordinate: delegate method
* [ios] Added notification handler for UIApplicationWillResignActiveNotificationJulian Rex2018-02-091-0/+2
|
* Adjust radius (#11132)Randall C Lee2018-02-061-1/+1
|
* [ios] Add Radius Configuration (#11070)Randall C Lee2018-02-054-3/+59
| | | | | | | | | | | | * Add Radius Configuration * Remove default config - removes default configuration - moves config setup to events init method - renames config class * Delete MGLConfig header file
* [ios] Fix the layout constraints on iOS 11 for iPhone X (#10858)Fabian Guerra Soto2018-01-101-32/+24
| | | | | | | | | | | | | | | | | | | | * [ios] Fix the layout constraints on iOS 11 for iPhone X for the bottom ornaments. * WIP adding tests for layout of map view attribution logo and other ornaments * Rename * First pass at tests for mapview ornament layout * Additional code changes from call with Fabian and Jason * [ios] Fix ornaments insets margin space. * [ios] Fix map view layout test for pre iOS 11. * [ios] Refactor MGLMapView ornaments layout constraints for iOS 11. * [ios] Remove NSLogs from MGLMapViewLayoutTests
* [ios] Dispatch location auth status check to backgroundJesse Bounds2018-01-041-36/+67
| | | | | | | | | | This attempts to work around reports of repeated calls to [CLLocationManager authorizationStatus] blocking the main thread by dispatching it to the background, serial queue that is already available in MGLMapboxEvents. This also adds a guard to the handler for the user defaults change event so that the call to pause or resume if required is done only if a user defaults value changes that would require an update to the pause / resume state. The guard works by utilizing two new state variables that keep track of the previous values for account type and metrics enabled configuration variables. The call to pause/resume is only done if the latest relevant values in the user defaults dictionary are actually different than the previous ones. The default values for the new state variables assume an account value of 0 and metrics enabled == true so there can be a small inefficiency if a user prevously opted out of telemetry, kills the app, and restarts it. In that case, the pause/resume method would get invoked one time when it would not technically need to. This should not be an issue in practice though.
* [darwin, ios, macos] Introduces an MGLRendererConfiguration classAndrew Kitchen2018-01-031-13/+5
| | | | | | Instructions for enabling client-side rendering of CJK glyphs live in this header, and this class provides the rest of the values needed for instantiating the renderer on iOS and macOS.
* [ios, macos] Adds support for specifying an ideographic font family nameAndrew Kitchen2018-01-031-2/+16
| | | | | Adding a MGLIdeographicFontFamilyName to the containing app's Info.plist will result in CJK glyphs being rasterized on demand (#10522)
* [ios] Update visible coordinates documentation to reflect antimeridian usage.Fabian Guerra2017-12-211-0/+12
|
* [ios] Fix ornament constrains on iOS 10Fabian Guerra2017-12-211-2/+3
|
* [ios] update constraints when updating content insetFredrik Karlsson2017-12-141-1/+1
|
* [ios] Fix an Interface Builder crash for IBInspectable properties.Fabian Guerra2017-12-142-2/+4
|
* [ios] Fix the content insets for the scale and compass view.Fabian Guerra2017-12-141-4/+8
|
* [ios, macos] Rename the iOS and macOS SDKs (#10610)Jordan Kiley2017-12-062-2/+2
|
* [ios, macos] Fix an issue that triggers didSelectAnnotations for ↵Fabian Guerra2017-11-301-1/+1
| | | | MGLAnnotationImage based annotations.
* [ios] Fix minimumZoomLevel is not getting set.Fabian Guerra2017-11-291-0/+1
|
* [ios] Update puck arrow stroke color when tint changesupstream/fb-update-puck-stroke-tint-colorJason Wray2017-11-161-0/+1
| | | | 🤤
* [ios] Fix toCamera.centerCoordinate in shouldChangeFromCamera (#10433)Fabian Guerra Soto2017-11-141-7/+6
| | | | | | | | | | * [ios] Fix toCamera.centerCoordinate in shouldChangeFromCamera has same center as oldCamera. * [ios] Update changelog. * [ios] Remove unnecessary variables. * [ios] Clarify changelog doc.
* [ios] Silence smart invert warnings (#10425)Jordan Kiley2017-11-091-20/+5
|
* Make places and roads accessible to VoiceOver (#9950)Minh Nguyễn2017-11-033-119/+630
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios] Summarize places, roads after zooming with VoiceOver After zooming, MGLMapView’s accessibility value now indicates the number of visible roads and lists out a few places visible in the current viewport, starting with the features at the highest z-index (not necessarily the largest or the closest to the center of the view). Avoid saying that no annotations are visible. * [ios] Allow VoiceOver to navigate among place features Split out a separate header for the various accessibility elements tied to MGLMapView. Wrap place features in accessibility elements and insert them into the narration order after the visible annotations but before the attribution button. Refactored MGLMapView’s accessibility code to rely on ranges to avoid off-by-one errors. * [ios] Post layout change notification when fully rendered Post a layout change notification when fully finishing a map render. * [ios, macos] Moved MGLVectorSource+MGLAdditions to more specific group * [ios] Localize accessibility feature names * [ios] Find place feature accessibility elements by identifier * [ios] Refactored accessibility traits Also created a new MGLPlaceFeatureAccessibilityElement class. * [ios] Sort accessibility elements by screen distance from center Sort annotation accessibility elements by screen distance, not the hypotenuse of coordinates, which can yield incorrect results when the map is rotated or tilted or when the user is located at high latitudes. Sort place feature accessibility elements by screen distance as well. * [ios] Create a place feature accessibility element, not an abstract feature accessibility element * [ios] Only query for visible place features once per camera Improved accessibility performance after changing the map camera. MGLMapView no longer queries the map for place features once per place feature. * [ios] Made roads accessible Wrap visible road features in accessibility elements described by the road name, route number, and general direction of travel. * [ios] Cleaned up radian conversions * [ios] Thickened road accessibility elements * [ios] Made unioned roads accessible * [ios] Consistently sort accessibility elements Also fixed an issue causing road feature accessibility elements to get treated like place feature accessibility elements. * [ios] Announce direction of divided roads Announce the direction of a divided road based on the direction of its first polyline. * [ios] Refined announced elevation units * [ios] Romanize feature names * [ios] Updated changelog * [ios] Delay zoom announcement A 100-millisecond delay is enough for the post-zooming announcement to reflect the new zoom level rather than the previous zoom level. * [ios] Consolidated geometry functions Adopted MGLGeometry_Private.h in the accessibility code, forcing a conversion to Objective-C++. Avoid inlining some of the more complex geometric functions. * [ios] Fixed feature name romanization in accessibility labels NSLocale.scriptCode is only set when the locale identifier explicitly specifies a script. Use NSOrthography to identify the dominant orthography regardless of locale. Also added a unit test of feature accessibility element labels. * [ios] Added tests for place, road accessibility values * [ios] Announce one-way roads A road feature’s accessibility value now indicates whether the road is a one-way road.
* [ios, macos] Center shape annotation's callout when offscreen. (#10255)Fabian Guerra Soto2017-11-011-21/+38
| | | | | | * [ios, macos] Center annotation's anchor to tap point when coordinate center is offscreen. * [ios, macos] Update changelogs.
* [ios, macos] Iterate over point and shape annotations. (#10262)Fabian Guerra Soto2017-10-271-44/+46
|
* [ios] Move scale bar content size invalidation to map viewJesse Bounds2017-10-252-3/+8
|
* [ios] Fix iOS 8 incompatibility in scale bar RTL checkJason Wray2017-10-201-3/+8
|
* [ios] Fix scale bar label alignmentJason Wray2017-10-191-3/+3
|
* [ios] Avoid drawing view annotations across pixel boundariesJason Wray2017-10-192-11/+12
|
* [ios] Slightly round the corners of the puck arrowJason Wray2017-10-191-1/+5
|
* [ios, macos] Add selection support to MGLMultiPoint annotations. (#9984)Fabian Guerra Soto2017-10-181-40/+67
| | | | | | * [ios, macos] Add selection support to MGLMultiPoint annotations. * [ios, macos] Update changelogs.
* [ios] Rename SMCalloutView and stop using submoduleupstream/fb-mglsmcalloutviewJason Wray2017-10-112-3/+3
|
* [ios] Update MGLUserLocation.heading for showsUserHeadingIndicatorupstream/fb-heading-docJason Wray2017-10-111-1/+2
|
* [android][ios][macOS] Implement bindings for `Map::cameraForGeometry`. On ↵Asheem Mamoowala2017-10-092-0/+25
| | | | macOS, also added -[MGLMapView setCamera: withDuration: animationTimingFunction: edgePadding: completionHandler:] for parity with iOS
* [ios, macos] Improve snap shotter documentation. (#10020)Fabian Guerra Soto2017-10-042-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Improve snap shotter documentation. * [macos] Save snapshots in correct format * [macos] Renamed snapshot item to Export Image * [ios, macos] Clarify Snapshotter documentation. * [ios] Fix snapshot scale * [macOS] Fix snapshotter 4x scaling. * [ios] Fix snapshotter final image scale. * [ios, macos] Update snapshotter size documentation. * [ios, macos] Throw an exception when the snapshotter has already started. * [ios, macos] Add snapshotter header example. * [ios, macos] Use one of the predefined Foundation's exception names.
* [ios] Undocument deprecated style class methodsJason Wray2017-10-021-12/+4
|
* [ios] Expose -showAttribution: publicly as an IBActionJason Wray2017-10-022-2/+14
|
* [ios] Don't disable user tracking when selecting an annotationJason Wray2017-09-291-5/+0
|
* [ios] Define user dot constants in implementation fileMinh Nguyễn2017-09-282-5/+13
|
* Merge branch 'release-ios-v3.6.0-android-v5.1.0' into master.upstream/fabian-merge-release-ios-v3.6.0-finalFabian Guerra2017-09-2712-277/+632
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # circle.yml # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/AnnotationManager.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/android/dependencies.gradle # platform/default/mbgl/storage/offline_database.cpp # platform/ios/CHANGELOG.md # platform/ios/Mapbox-iOS-SDK-nightly-dynamic.podspec # platform/ios/Mapbox-iOS-SDK-symbols.podspec # platform/ios/Mapbox-iOS-SDK.podspec # platform/ios/app/Main.storyboard # platform/ios/src/MGLMapView.mm # src/mbgl/programs/attributes.hpp # src/mbgl/renderer/painter_fill.cpp # src/mbgl/tile/geometry_tile.hpp # src/mbgl/tile/geometry_tile_worker.cpp # src/mbgl/tile/raster_tile.cpp # src/mbgl/tile/raster_tile.hpp # src/mbgl/tile/raster_tile_worker.cpp # test/tile/annotation_tile.test.cpp # test/tile/geojson_tile.test.cpp # test/tile/raster_tile.test.cpp # test/tile/vector_tile.test.cpp
| * [ios] Be sure to get a BOOL value for nullable dict keysJason Wray2017-09-151-3/+3
| | | | | | | | | | | | Otherwise it errors with, "cannot initialize a variable of type 'BOOL' (aka 'signed char') with an rvalue of type 'id _Nullable'." This doesn't seem like it should be necessary.
| * [ios] Use constraints to manage ornament view placement (again) (#9995)Jesse Bounds2017-09-141-94/+224
| | | | | | | | | | | | | | | | This reverts the manual layout triggered by KVO approach in favor of a constraints based approach that the KVO method had previously replaced. Although the manual layout approach worked well in most cases and was cleaner in that it did not manipulate any containing views in the app space, using KVO on UIViewControllers has proven to be dangerous. This also updates the gitshas for KIF and OHHTTPStubs to unbreak UI tests that verify these related changes are working. This also adds an ornament constraint system for iOS 11+
| * [ios] Ignore Smart Invert (#9876)Jordan Kiley2017-09-131-1/+16
| |
| * [ios] Disable implicit animation of heading indicatorsJason Wray2017-09-071-3/+8
| | | | | | | | | | | | The update steps for the heading indicator are typically small, so animations tend to pile up and cause performance issues. Disabling actions is a slight regression when it comes to large steps (they're not animated now, where they previously were) and this should eventually be addressed. Also consistently use provided API for disabling CATransaction actions.
| * [ios] Implicitly enable showsUserLocation when enabling the heading indicatorJason Wray2017-09-072-3/+9
| |
| * [ios] Make user heading indicator property IBInspectableJason Wray2017-09-072-0/+16
| | | | | | | | Rename it to `showsHeading` to fit in the tiny label column of the utilities panel.