summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@mapbox.com>2019-03-21 00:05:55 -0400
committerJulian Rex <julian.rex@mapbox.com>2019-03-21 00:05:55 -0400
commitf9f92093092e29139dd44cfaf272abc3c4ff19f6 (patch)
treefe6fa37e8b895a29a3942bc3fd84b65dda7026d3
parentc4f621151eaa8d74ed9765db302b4c71bb01ba25 (diff)
downloadqtlocation-mapboxgl-f9f92093092e29139dd44cfaf272abc3c4ff19f6.tar.gz
Remove map view from storyboard - to avoid duplicate mapviews being instantiated.
-rw-r--r--platform/ios/app/Main.storyboard51
-rw-r--r--platform/ios/src/MGLMapView.mm5
2 files changed, 3 insertions, 53 deletions
diff --git a/platform/ios/app/Main.storyboard b/platform/ios/app/Main.storyboard
index 1dae42f291..9bd7495edc 100644
--- a/platform/ios/app/Main.storyboard
+++ b/platform/ios/app/Main.storyboard
@@ -59,8 +59,6 @@
</rightBarButtonItems>
</navigationItem>
<connections>
- <outlet property="frameTimeGraphView" destination="BHE-Wn-x69" id="sFg-9b-DgH"/>
- <outlet property="hudLabel" destination="58y-pX-YyB" id="aGG-7a-bZR"/>
<segue destination="zvf-Qd-4Ru" kind="show" identifier="ShowSnapshots" id="hzX-Jp-UJq"/>
<segue destination="dgL-Bu-te0" kind="show" identifier="ShowCustomLocationManger" id="kDM-0K-hSf"/>
</connections>
@@ -71,55 +69,6 @@
<action selector="handleLongPress:" destination="WaX-pd-UZQ" id="dkk-bc-rvl"/>
</connections>
</pongPressGestureRecognizer>
- <view contentMode="scaleToFill" id="kNe-zV-9ha" customClass="MGLMapView">
- <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <subviews>
- <button hidden="YES" opaque="NO" userInteractionEnabled="NO" alpha="0.69999999999999996" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="tailTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="58y-pX-YyB">
- <rect key="frame" x="16" y="50" width="40" height="20"/>
- <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
- <accessibility key="accessibilityConfiguration">
- <accessibilityTraits key="traits" button="YES" notEnabled="YES"/>
- </accessibility>
- <constraints>
- <constraint firstAttribute="width" relation="greaterThanOrEqual" constant="40" id="viz-kn-dfK"/>
- <constraint firstAttribute="height" constant="20" id="zSU-Mb-f1v"/>
- </constraints>
- <fontDescription key="fontDescription" type="system" pointSize="10"/>
- <inset key="contentEdgeInsets" minX="4" minY="2" maxX="4" maxY="2"/>
- <userDefinedRuntimeAttributes>
- <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
- <integer key="value" value="2"/>
- </userDefinedRuntimeAttribute>
- </userDefinedRuntimeAttributes>
- </button>
- <view hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="BHE-Wn-x69" customClass="MBXFrameTimeGraphView">
- <rect key="frame" x="0.0" y="467" width="375" height="200"/>
- <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
- <accessibility key="accessibilityConfiguration">
- <accessibilityTraits key="traits" notEnabled="YES"/>
- </accessibility>
- <constraints>
- <constraint firstAttribute="height" constant="200" id="TgT-yb-9e5"/>
- </constraints>
- </view>
- </subviews>
- <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
- <gestureRecognizers/>
- <constraints>
- <constraint firstItem="58y-pX-YyB" firstAttribute="top" secondItem="kNe-zV-9ha" secondAttribute="topMargin" constant="30" id="89S-qk-mPR"/>
- <constraint firstItem="BHE-Wn-x69" firstAttribute="leading" secondItem="kNe-zV-9ha" secondAttribute="leading" id="aHd-3F-9nV"/>
- <constraint firstAttribute="bottom" secondItem="BHE-Wn-x69" secondAttribute="bottom" id="bfH-4q-2uU"/>
- <constraint firstItem="58y-pX-YyB" firstAttribute="leading" secondItem="kNe-zV-9ha" secondAttribute="leadingMargin" id="cXU-Qh-ilW"/>
- <constraint firstAttribute="trailing" secondItem="BHE-Wn-x69" secondAttribute="trailing" id="lZL-gi-2XC"/>
- <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="58y-pX-YyB" secondAttribute="trailing" id="txU-Gp-2du"/>
- </constraints>
- <viewLayoutGuide key="safeArea" id="EIN-ng-f35"/>
- <connections>
- <outlet property="delegate" destination="WaX-pd-UZQ" id="za0-3B-qR6"/>
- <outletCollection property="gestureRecognizers" destination="lfd-mn-7en" appends="YES" id="0PH-gH-GRm"/>
- </connections>
- </view>
</objects>
<point key="canvasLocation" x="1365.5999999999999" y="348.57571214392806"/>
</scene>
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index fffbe9bfa6..4a16d2f6fb 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -1390,7 +1390,7 @@ public:
- (void)sleepGL:(__unused NSNotification *)notification
{
- NSLog(@"sleepGL START");
+ NSLog(@"sleepGL START (self=%p)", self);
// If this view targets an external display, such as AirPlay or CarPlay, we
// can safely continue to render OpenGL content without tripping
// gpus_ReturnNotPermittedKillClient in libGPUSupportMercury, because the
@@ -1398,6 +1398,7 @@ public:
// background.
if (self.window.screen != [UIScreen mainScreen])
{
+ NSLog(@"sleepGL early return");
return;
}
@@ -1447,7 +1448,7 @@ public:
[self.glView deleteDrawable];
}
- NSLog(@"sleepGL END");
+ NSLog(@"sleepGL END (self=%p)", self);
}
- (void)wakeGL:(__unused NSNotification *)notification