summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView.mm
Commit message (Collapse)AuthorAgeFilesLines
* [ios] Remove more deprecated bits for release-bobaJason Wray2018-04-161-47/+2
|
* [ios, macos] Renamed MGLVectorSource to MGLVectorTileSourceMinh Nguyễn2018-04-021-1/+1
|
* [ios,macos] Selecting offscreen annotation pans map to fit annotation & ↵Julian Rex2018-03-211-19/+82
| | | | callout view (#3249, #9790)
* [ios] Fix pinch drift ignoring delegate camera change responseJason Wray2018-03-141-3/+7
|
* [ios, macos] Fix an issue where a wrong annotation may selected if ↵Lloyd Sheng2018-03-131-26/+23
| | | | | | | | | | | | annotations were set close together (#11438) * [ios] Fix an issue where wrong annotation may selected when annotations very close #10734 * [macos] Fix an issue where a wrong annotation may selected if annotations were set close together * update the iOS change log and the macOS change log * Fix an issue where the comment referenced to the wrong variable name
* [ios] Add MGLMapView.showsScale to control scale bar visibility (#11335)Jason Wray2018-03-021-6/+26
| | | | | | - Fixes scale bar not being visible until a camera change event. - Adds IBInspectable for scale bar visibility. - Add tests of the scale bar being added to the map view
* [ios] Provide haptic feedback when user rotates to due northJason Wray2018-02-271-0/+21
|
* [ios, macos] Unwrap coordinate boundsMinh Nguyễn2018-02-211-30/+18
| | | | Updated coordinate bounds conversion methods to use the beyond-±180 method to indicate that the bounds extends beyond the antimeridian. Also copyedited conversion documentation.
* [ios] Fix loop when first asking for location permission (#11229)Jason Wray2018-02-201-1/+2
|
* Replace embedded telem implementation with mapbox-mobile-events library (#10698)Jesse Bounds2018-02-201-19/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios] Introduce mobile events dependency This adds the mobile events dependency including the events library's namespaced header file so that the related compiled symbols are prefixed to make them specific to the maps SDK. A pre-compiled header file is added so that the namespaced header file is added in all places where it is needed (most importantly every events library file). * [ios] Use new events library for telemetry events This makes the following significant changes: Refactors the MGLMapboxEvents singleton to delegate internally to an instance of MMEEventsManager that it keeps for itself. The MGLMapboxEvents public API is refactored to reflect this. Note: MGLMapboxEvents continues to handle checking for opt out Uses that new events API in MGLMapboxEvents to send all telem events (and turnstile) All embedded certs are removed since the new telem library uses public key info pinning Legacy telemetry utility classes for location and networking are removed since those are implemented in the telem library * [ios] Update submodules initialized by cmake We no longer bring in SMCalloutView as a submodule so it is removed. We now vendor the telemetry events library as a submodule so it is added. * Update mapbox-mobile-events * Update mobile events lib * Set events options with MGL user defaults values For options that historically could be set with user defaults in the Maps SDK, collect them and set the appropriate property values in the new events library. Also, check the existence of two new optional configuration values MGLTelemetryAccessToken and MGLTelemetryBaseURL so that the events endpoint and access token can be configured and the access token can easily be set dynamically and apart from the access token for the maps API. MGLTelemetryBaseURL replaces the legacy MGLTelemetryTestServerURL. This is ok because this value was never intended to be used by client applications. The new name better reflects the fact that the URL can be changed to any backend stack, not just a test server. Because it is possible for the configuration values to be read from user defaults before the events manager is fully set up, this also adds a local cache for the baseURL and accessToken values so that they can be stored and applied once it is time to setup the the events manager. * Update mapbox-mobile-events mapbox-mobile-events was forced pushed to include https://github.com/mapbox/mapbox-events-ios/pull/28 * Rename MGLMapboxEvents singleton access method Manager is not in the name of the class. Just call it an instance. * Update mapbox-mobile-events * Add comments about config value loading * Guard against creating events for IB * Refactor user defaults update handler This updates the handling logic for user defaults to break apart config changes that require a check for pausing or resuming the events lib’s telemetry collection from config changes that can happen with no update to the pause/resume state. It also ports the optimization from https://github.com/mapbox/mapbox-gl-native/pull/10803 so that the call to pause and resume is not performed unless the user defaults store has new values that have not yet been applied to the events library. * Update mapbox-mobile-events * Rename events submodule folder * Fix incorrect events library refs * Update mapbox-mobile-events * Update user user agent id value This value aligns with our schme of {source-sdk-platform} and will be used by the events library in the user agent and vendorid. * Update mapbox-mobile-events Pin to v3.0.0 (d522b18) * Improve code comments * [ios] Fixed a broken file reference to MGLTelemetryConfig.
* [ios, macos] Mark deprecated methods as unavailable (#11205)Jordan Kiley2018-02-161-45/+0
| | | Fixes #10735
* Merge branch 'master' into release-bobaFabian Guerra2018-02-151-46/+143
|\ | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/widgets/CompassView.java # platform/android/scripts/exclude-activity-gen.json # 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/macos/CHANGELOG.md
| * [ios] Release cached tiles on entering background.Chris Loer2018-02-141-0/+7
| | | | | | | | | | Retain current render tiles for fast restart. Waiting for a memory warning doesn't work because we can't make GL release calls once we're in the background.
| * [core] Rename "onLowMemory" to "reduceMemoryUse".Chris Loer2018-02-141-2/+2
| | | | | | | | | | Android still calls "reduceMemoryUse" only while handling a low memory event. iOS, on the other hand, calls "reduceMemoryUse" every time it enters the background.
| * Merge tag 'ios-v3.7.4' into masterFabian Guerra2018-02-131-44/+134
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # include/mbgl/style/conversion/tileset.hpp # include/mbgl/util/tileset.hpp # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/ios/CHANGELOG.md # platform/ios/ios.xcodeproj/project.pbxproj # platform/macos/CHANGELOG.md # src/mbgl/layout/symbol_projection.cpp # src/mbgl/renderer/tile_pyramid.cpp # src/mbgl/style/conversion/tileset.cpp
| | * [ios] Adds camera change delegate methods with reason parameter. (#11151)Julian Rex2018-02-121-44/+134
| | | | | | | | | | | | Added missing notification handler for UIApplicationWillResignActiveNotification.
* | | [ios] Fix image property of MGLAnnotationImage does not update.Fabian Guerra2018-01-261-5/+0
|/ /
* | Merge branch 'release-agua' into masterFabian Guerra2018-01-171-32/+24
|\ \ | |/ | | | | | | | | | | | | | | | | # Conflicts: # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/ios/CHANGELOG.md # platform/ios/ios.xcodeproj/project.pbxproj # platform/macos/CHANGELOG.md
| * [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
* | Merge branch 'release-agua' into masterupstream/fabian-merge-release-aguaFabian Guerra2018-01-041-14/+19
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # circle.yml # cmake/core-files.cmake # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/build.gradle # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/CameraChangeDispatcher.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMapOptions.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/text/LocalGlyphRasterizer.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/utils/BitmapUtils.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/DebugModeActivity.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/LocalGlyphActivity.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/userlocation/MyLocationTintActivity.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_local_glyph.xml # platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/descriptions.xml # platform/darwin/src/MGLMapSnapshotter.mm # platform/darwin/src/MGLRendererConfiguration.h # platform/ios/CHANGELOG.md # platform/ios/DEVELOPING.md # platform/ios/INSTALL.md # platform/ios/README.md # platform/ios/resources/bg.lproj/Localizable.strings # platform/ios/resources/es.lproj/Localizable.strings # platform/ios/resources/vi.lproj/Localizable.strings # platform/ios/src/MGLMapView.mm # platform/macos/macos.xcodeproj/project.pbxproj # src/mbgl/text/glyph_manager.cpp
| * [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] 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 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-061-1/+1
| |
| * [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] 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, macos] Move private categories into explicitly private headersJason Wray2018-01-021-1/+1
| | | | | | | | | | | | Instead of creating `MGLAdditions` categories/files for our own classes, this standardizes on the `Private` convention that we had been using elsewhere. This also fixes build errors where the `MGLAdditions` categories weren't importing their parents.
* | [darwin, ios, macos] Introduces an MGLRendererConfiguration classAndrew Kitchen2017-12-111-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 Kitchen2017-12-111-2/+16
| | | | | | | | | | Adding a MGLIdeographicFontFamilyName to the containing app's Info.plist will result in CJK glyphs being rasterized on demand (#10522)
* | [ios] Long-press attribution button to show SDK versionJason Wray2017-12-071-2/+20
| |
* | [ios, macos] Rename the iOS and macOS SDKs (#10610)Jordan Kiley2017-12-041-1/+1
| |
* | [core] move HeadlessBackend extension initialization code into ImplKonstantin Käfer2017-11-291-1/+1
| |
* | [ios] update constraints when updating content insetFredrik Karlsson2017-11-201-1/+1
| |
* | Merge branch 'release-agua' into tvn-merge-releaseTobrun2017-11-101-181/+469
|\ \ | |/
| * [ios] Silence smart invert warnings (#10425)Jordan Kiley2017-11-091-20/+5
| |
| * Make places and roads accessible to VoiceOver (#9950)Minh Nguyễn2017-11-031-119/+377
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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-251-0/+8
| |
| * [ios] Avoid drawing view annotations across pixel boundariesJason Wray2017-10-191-6/+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-111-2/+2
| |
| * [android][ios][macOS] Implement bindings for `Map::cameraForGeometry`. On ↵Asheem Mamoowala2017-10-091-0/+11
| | | | | | | | macOS, also added -[MGLMapView setCamera: withDuration: animationTimingFunction: edgePadding: completionHandler:] for parity with iOS
* | [core] Move GLContextMode to its own Renderer headerBruno de Oliveira Abinader2017-11-011-0/+1
| |
* | [ios] Move scale bar content size invalidation to map viewJesse Bounds2017-10-251-0/+8
| |
* | [ios, macos] Use CLLocationDirection for direction parameter in -[MGLMapView ↵Asheem Mamoowala2017-10-091-1/+1
| | | | | | | | cameraThatFitsShape:shape direction: edgePadding:]
* | [android][ios][macOS] Implement bindings for `Map::cameraForGeometry`. On ↵Asheem Mamoowala2017-10-091-0/+11
|/ | | | macOS, also added -[MGLMapView setCamera: withDuration: animationTimingFunction: edgePadding: completionHandler:] for parity with iOS