summaryrefslogtreecommitdiff
path: root/platform/macos/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/macos/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/macos/src/MGLMapView.mm')
-rw-r--r--platform/macos/src/MGLMapView.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm
index 9a7cb437ec..aec9cea0bc 100644
--- a/platform/macos/src/MGLMapView.mm
+++ b/platform/macos/src/MGLMapView.mm
@@ -57,6 +57,7 @@
#import "NSImage+MGLAdditions.h"
#import "NSPredicate+MGLPrivateAdditions.h"
#import "MGLLoggingConfiguration_Private.h"
+#import "MGLNetworkIntegrationManager.h"
class MGLAnnotationContext;
@@ -258,6 +259,7 @@ public:
}
- (void)commonInit {
+ MGLNativeNetworkManager.sharedManager.delegate = MGLNetworkIntegrationManager.sharedManager;
_isTargetingInterfaceBuilder = NSProcessInfo.processInfo.mgl_isInterfaceBuilderDesignablesAgent;
// Set up cross-platform controllers and resources.