summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView.mm
diff options
context:
space:
mode:
authorm-stephen <truestyle2005@163.com>2019-12-14 13:38:46 +0800
committerGitHub <noreply@github.com>2019-12-14 13:38:46 +0800
commitf9b72842761b8f66fc8e5429e936b840cf807dd7 (patch)
tree21bac914d27529d29306c511dcb3a41dec5c3897 /platform/ios/src/MGLMapView.mm
parent5538b6f41d9e5a8f7ab1b5b1c16d58fca2e8e181 (diff)
downloadqtlocation-mapboxgl-f9b72842761b8f66fc8e5429e936b840cf807dd7.tar.gz
[ios, macos]Remove iOS/macOS codes from native codes (#16031)
* add source/header * add ios files * add configs * modify name * http_file_source * add interface delegate when map init * fix name * fix delegate name * support mac os * add mac os support * make optional delegate when mac os * mac/ios difference * add ios change log * cancel iOS/mac OS judgement * cancel iOS/mac OS judgement * cancel judgement in .m * update * update * update http_file_source * update ios * update mac os * add mac os file * add mac os file to `.cmake` * change names * add log & fix format * reset changelog commit * update changelog * rename iOS network manager * Add a test configuration(same as default configuration) when mac os run tests * re-add account type into `http_file_source` * refactor
Diffstat (limited to 'platform/ios/src/MGLMapView.mm')
-rw-r--r--platform/ios/src/MGLMapView.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index 9b4ef8ff2d..d8470aa999 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -68,6 +68,7 @@
#import "MGLMapAccessibilityElement.h"
#import "MGLLocationManager_Private.h"
#import "MGLLoggingConfiguration_Private.h"
+#import "MGLNetworkIntegrationManager.h"
#import "MMEConstants.h"
#include <algorithm>
@@ -452,6 +453,7 @@ public:
// setup accessibility
//
// self.isAccessibilityElement = YES;
+ MGLNativeNetworkManager.sharedManager.delegate = MGLNetworkIntegrationManager.sharedManager;
self.accessibilityLabel = NSLocalizedStringWithDefaultValue(@"MAP_A11Y_LABEL", nil, nil, @"Map", @"Accessibility label");
self.accessibilityTraits = UIAccessibilityTraitAllowsDirectInteraction | UIAccessibilityTraitAdjustable;
self.backgroundColor = [UIColor clearColor];