summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@gmail.com>2019-01-04 09:15:59 -0500
committerGitHub <noreply@github.com>2019-01-04 09:15:59 -0500
commit76b3bb9d20259db6d5ba7c39e00bf7d13922d0a4 (patch)
tree76b1724dd8e2ee6648668cd0a25a3b1ec4deb61c
parentf3971bd6e7ebf15f195e9be2ad94f524ac49b968 (diff)
downloadqtlocation-mapboxgl-76b3bb9d20259db6d5ba7c39e00bf7d13922d0a4.tar.gz
[ios, macos] Added missing mapViewDidBecomeIdle for iOS. Fixed typo. (#13666)
-rw-r--r--platform/ios/src/MGLMapView.mm14
-rw-r--r--platform/macos/src/MGLMapView.mm2
2 files changed, 15 insertions, 1 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index 28367e83be..52bf4e83f5 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -5988,6 +5988,16 @@ public:
}
}
+- (void)mapViewDidBecomeIdle {
+ if (!_mbglMap) {
+ return;
+ }
+
+ if ([self.delegate respondsToSelector:@selector(mapViewDidBecomeIdle:)]) {
+ [self.delegate mapViewDidBecomeIdle:self];
+ }
+}
+
- (void)didFinishLoadingStyle {
if (!_mbglMap)
{
@@ -6546,6 +6556,10 @@ public:
[nativeView mapViewDidFinishRenderingMapFullyRendered:fullyRendered];
}
+ void onDidBecomeIdle() override {
+ [nativeView mapViewDidBecomeIdle];
+ }
+
void onDidFinishLoadingStyle() override {
[nativeView didFinishLoadingStyle];
}
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm
index 1ba2483d52..434f405a5f 100644
--- a/platform/macos/src/MGLMapView.mm
+++ b/platform/macos/src/MGLMapView.mm
@@ -939,7 +939,7 @@ public:
return;
}
- if ([self.delegate respondsToSelector:@selector(mapViewDidBecomeIdle)]) {
+ if ([self.delegate respondsToSelector:@selector(mapViewDidBecomeIdle:)]) {
[self.delegate mapViewDidBecomeIdle:self];
}
}