Skip to content

Commit

Permalink
chore: Update Maps and Places samples from CocoaPods
Browse files Browse the repository at this point in the history
  • Loading branch information
googlemaps-bot committed Jun 9, 2024
1 parent a1e7900 commit d3b905c
Show file tree
Hide file tree
Showing 178 changed files with 1,878 additions and 495 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
527B1FD748F9E09497AE9422 /* h1@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = F6F1E5421B57C252445506E0 /* h1@2x.png */; };
536D3125EF4F72B15628EC7F /* DataDrivenStylingSearchViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 977C1755E05CB7EA2762CA06 /* DataDrivenStylingSearchViewController.swift */; };
5534B3794341399590A067A6 /* bulgaria-large.png in Resources */ = {isa = PBXBuildFile; fileRef = C4F2BDD22D4FB022AD541BEF /* bulgaria-large.png */; };
57388C95AFB15912F48A96EB /* libPods-GoogleMapsSwiftXCFrameworkDemos.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AD8443454E5099482ADBFEC /* libPods-GoogleMapsSwiftXCFrameworkDemos.a */; };
57BC3CA708BD943FA5358919 /* step6.png in Resources */ = {isa = PBXBuildFile; fileRef = 7AEA0F0B8CA82A47CA6E47CB /* step6.png */; };
5926FD7EDFF0132D8D2CF286 /* GradientPolylinesViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EB404600C1AA305B4E4B7F51 /* GradientPolylinesViewController.swift */; };
5B26DDAD8CAE68C1B745CE47 /* SampleLevel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F44C366722FCF79010C1617B /* SampleLevel.swift */; };
Expand All @@ -63,7 +64,6 @@
82043308F53102E889C6B28F /* DataDrivenStylingEventsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EF2332C983F2B61EE8D591A /* DataDrivenStylingEventsViewController.swift */; };
8672736AB1BB98F58F6C5ED9 /* botswana.png in Resources */ = {isa = PBXBuildFile; fileRef = 8CB004432BC22DC920797C87 /* botswana.png */; };
8CB666464C345428DFBC567C /* GMSMapStyle+Bundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E945C0EF87794CB7BBACB41 /* GMSMapStyle+Bundle.swift */; };
9231B336F9410D85C0AC5AF6 /* libPods-GoogleMapsSwiftXCFrameworkDemos.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E435025CEF4F4BC87E93D58 /* libPods-GoogleMapsSwiftXCFrameworkDemos.a */; };
968451616004D31510CD1EAF /* PanoramaServiceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E42C1CA863AAC166B9252B90 /* PanoramaServiceController.swift */; };
96AC98FFADF710277E6F4309 /* boat@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C6FC465538CF0231E3E32EF /* boat@2x.png */; };
9A11BCC3B4489D9E4B60BEA7 /* AnimatedUIViewMarkerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 90FD42CF0008B034BF8B30F5 /* AnimatedUIViewMarkerViewController.swift */; };
Expand Down Expand Up @@ -118,13 +118,15 @@
09AF3C38EC1E3DB3EABE7ABA /* FixedPanoramaViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FixedPanoramaViewController.swift; sourceTree = "<group>"; };
0E945C0EF87794CB7BBACB41 /* GMSMapStyle+Bundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "GMSMapStyle+Bundle.swift"; sourceTree = "<group>"; };
0ECF1B00F18F2B677F4DD399 /* step1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = step1.png; sourceTree = "<group>"; };
1AD8443454E5099482ADBFEC /* libPods-GoogleMapsSwiftXCFrameworkDemos.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-GoogleMapsSwiftXCFrameworkDemos.a"; sourceTree = BUILT_PRODUCTS_DIR; };
1D0078DD977DCD440A9B1847 /* spitfire.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = spitfire.png; sourceTree = "<group>"; };
1D1D4D6D5C210F5C574E7437 /* step8@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "step8@2x.png"; sourceTree = "<group>"; };
1EE67692C7A590BCF85C3ED9 /* h1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = h1.png; sourceTree = "<group>"; };
1F6BA50D14237A802AF073AE /* SnapshotReadyViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SnapshotReadyViewController.swift; sourceTree = "<group>"; };
207123C407D9F42BB6D3C9D6 /* step1@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "step1@2x.png"; sourceTree = "<group>"; };
23ACFAADC81FFB6F8E87E490 /* SampleMapStyle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SampleMapStyle.swift; sourceTree = "<group>"; };
29D64507E7C65D915EAD614D /* StyledMapViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StyledMapViewController.swift; sourceTree = "<group>"; };
2B5768EAAFEF87F477060220 /* Pods-GoogleMapsSwiftXCFrameworkDemos.default.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GoogleMapsSwiftXCFrameworkDemos.default.xcconfig"; path = "Target Support Files/Pods-GoogleMapsSwiftXCFrameworkDemos/Pods-GoogleMapsSwiftXCFrameworkDemos.default.xcconfig"; sourceTree = "<group>"; };
2D880653F74363F674AC11FF /* BasicMapViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BasicMapViewController.swift; sourceTree = "<group>"; };
2E152725ABC167064FB9B792 /* voyager.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = voyager.png; sourceTree = "<group>"; };
3061757D4FF862BB7A736490 /* track.json */ = {isa = PBXFileReference; lastKnownFileType = text; path = track.json; sourceTree = "<group>"; };
Expand All @@ -134,7 +136,6 @@
392A7D132855C21094CFB021 /* australia-large.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "australia-large.png"; sourceTree = "<group>"; };
3A66A9AD0A36086F2FAFAE15 /* MarkerEventsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarkerEventsViewController.swift; sourceTree = "<group>"; };
3A7D2BC402119B009115B458 /* walking_dot@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "walking_dot@3x.png"; sourceTree = "<group>"; };
3E435025CEF4F4BC87E93D58 /* libPods-GoogleMapsSwiftXCFrameworkDemos.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-GoogleMapsSwiftXCFrameworkDemos.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3EB880171F8782BB95056A63 /* step5.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = step5.png; sourceTree = "<group>"; };
401F0FC38C20C76F7D1C0A47 /* step8.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = step8.png; sourceTree = "<group>"; };
4162E354E88F4EFE2CF145C0 /* GoogleMapsSwiftXCFrameworkDemos.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GoogleMapsSwiftXCFrameworkDemos.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -174,7 +175,6 @@
977C1755E05CB7EA2762CA06 /* DataDrivenStylingSearchViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataDrivenStylingSearchViewController.swift; sourceTree = "<group>"; };
9862C46F7F70E4C7EF238EA6 /* CustomIndoorViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomIndoorViewController.swift; sourceTree = "<group>"; };
98E9B6EA859BE405346819D9 /* MapTypesViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MapTypesViewController.swift; sourceTree = "<group>"; };
9A14E4160277506E25D036FD /* Pods-GoogleMapsSwiftXCFrameworkDemos.default.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GoogleMapsSwiftXCFrameworkDemos.default.xcconfig"; path = "Target Support Files/Pods-GoogleMapsSwiftXCFrameworkDemos/Pods-GoogleMapsSwiftXCFrameworkDemos.default.xcconfig"; sourceTree = "<group>"; };
9D352205B6B3A8624B7640B1 /* VisibleRegionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VisibleRegionViewController.swift; sourceTree = "<group>"; };
9F85E37BBCF08547A4D6D1EB /* aeroplane@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "aeroplane@2x.png"; sourceTree = "<group>"; };
A489BF0E3CECC559937A38D1 /* arrow.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = arrow.png; sourceTree = "<group>"; };
Expand Down Expand Up @@ -224,7 +224,7 @@
buildActionMask = 2147483647;
files = (
78D1E74704B5966731F0EAFD /* UIKit.framework in Frameworks */,
9231B336F9410D85C0AC5AF6 /* libPods-GoogleMapsSwiftXCFrameworkDemos.a in Frameworks */,
57388C95AFB15912F48A96EB /* libPods-GoogleMapsSwiftXCFrameworkDemos.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -235,20 +235,11 @@
isa = PBXGroup;
children = (
813AA650D6B913CB76AAAB53 /* UIKit.framework */,
3E435025CEF4F4BC87E93D58 /* libPods-GoogleMapsSwiftXCFrameworkDemos.a */,
1AD8443454E5099482ADBFEC /* libPods-GoogleMapsSwiftXCFrameworkDemos.a */,
);
name = Frameworks;
sourceTree = "<group>";
};
3C21D7D528A2D38D67C35B40 /* Pods */ = {
isa = PBXGroup;
children = (
9A14E4160277506E25D036FD /* Pods-GoogleMapsSwiftXCFrameworkDemos.default.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
66BBCDCC5A47AE0211100656 /* Source */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -312,6 +303,15 @@
path = Resources;
sourceTree = "<group>";
};
82C7FD21A9FD7F7D94B8AB00 /* Pods */ = {
isa = PBXGroup;
children = (
2B5768EAAFEF87F477060220 /* Pods-GoogleMapsSwiftXCFrameworkDemos.default.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
8C8A275114BA9A7F834826D9 /* Samples */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -391,7 +391,7 @@
66BBCDCC5A47AE0211100656 /* Source */,
1770C8310E66B2F5721EFB53 /* Frameworks */,
C28851C9B618723E4F44AB23 /* Products */,
3C21D7D528A2D38D67C35B40 /* Pods */,
82C7FD21A9FD7F7D94B8AB00 /* Pods */,
);
sourceTree = "<group>";
};
Expand All @@ -414,11 +414,11 @@
isa = PBXNativeTarget;
buildConfigurationList = 5AC1A4250158D74DFA863CCE /* Build configuration list for PBXNativeTarget "GoogleMapsSwiftXCFrameworkDemos" */;
buildPhases = (
C35727428108954F084870AD /* [CP] Check Pods Manifest.lock */,
AC120B30448D83115E1D9DBC /* [CP] Check Pods Manifest.lock */,
3F21832F0D03F8AC6CEF22A0 /* Resources */,
BA0F106D7033E3A8544A3F80 /* Sources */,
D163048ECCA404350BF50B51 /* Frameworks */,
06B5175459B7D2FC50E31289 /* [CP] Copy Pods Resources */,
5B8A0C2AEF0F3FE77D3830EE /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -518,7 +518,7 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
06B5175459B7D2FC50E31289 /* [CP] Copy Pods Resources */ = {
5B8A0C2AEF0F3FE77D3830EE /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand All @@ -540,7 +540,7 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-GoogleMapsSwiftXCFrameworkDemos/Pods-GoogleMapsSwiftXCFrameworkDemos-resources.sh\"\n";
showEnvVarsInLog = 0;
};
C35727428108954F084870AD /* [CP] Check Pods Manifest.lock */ = {
AC120B30448D83115E1D9DBC /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand Down Expand Up @@ -624,14 +624,14 @@
/* Begin XCBuildConfiguration section */
060E158855CB2E3846F43DB2 /* Default */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9A14E4160277506E25D036FD /* Pods-GoogleMapsSwiftXCFrameworkDemos.default.xcconfig */;
baseConfigurationReference = 2B5768EAAFEF87F477060220 /* Pods-GoogleMapsSwiftXCFrameworkDemos.default.xcconfig */;
buildSettings = {
"ARCHS[sdk=iphonesimulator*]" = x86_64;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_OBJC_ARC = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
INFOPLIST_FILE = ./GoogleMapsSwiftXCFrameworkDemos/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
.,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ extension SampleListViewController: UITableViewDelegate {
shouldCollapseDetailViewController = false
tableView.deselectRow(at: indexPath, animated: true)
if let sample = sample(at: indexPath) {
let viewController = sample.viewControllerClass.init()
let viewController = sample.viewController
viewController.title = sample.title
let navController = UINavigationController(rootViewController: viewController)
navController.navigationBar.isTranslucent = false
Expand Down Expand Up @@ -135,7 +135,6 @@ extension SampleListViewController: UISearchResultsUpdating {

extension Sample {
func matches(_ filter: String) -> Bool {
return title.lowercased().contains(filter)
|| String(describing: viewControllerClass).lowercased().contains(filter)
return searchString.lowercased().contains(filter)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ final class AnimatedCurrentLocationViewController: UIViewController {
override func loadView() {
mapView.settings.myLocationButton = false
mapView.settings.indoorPicker = false

// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

view = mapView
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class AnimatedUIViewMarkerViewController: UIViewController {
private var infoView: UIImageView?

override func loadView() {
// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

view = mapView
mapView.delegate = self
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class BasicMapViewController: UIViewController {
// Seattle coordinates
let camera = GMSCameraPosition(latitude: 47.6089945, longitude: -122.3410462, zoom: 14)
let mapView = GMSMapView(frame: view.bounds, camera: camera)

// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

mapView.delegate = self
view = mapView
navigationController?.navigationBar.isTranslucent = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class CameraViewController: UIViewController {
private var timer: Timer?

override func loadView() {
// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

mapView.settings.zoomGestures = false
mapView.settings.scrollGestures = false
mapView.settings.rotateGestures = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ extension CustomIndoorViewController: GMSIndoorDisplayDelegate {
self.sampleLevels = sampleLevels

levelPickerView.reloadAllComponents()
levelPickerView.selectRow(-1, inComponent: 0, animated: false)
levelPickerView.selectRow(0, inComponent: 0, animated: false)
}

func didChangeActiveLevel(_ level: GMSIndoorLevel?) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class CustomMarkersViewController: UIViewController {
}()

override func loadView() {
// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

view = mapView
addDefaultMarkers()
navigationController?.navigationBar.isTranslucent = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,18 @@ class DoubleMapViewController: UIViewController {
latitude: 37.7847, longitude: -122.41, zoom: 5)
private lazy var mapView: GMSMapView = {
let mapView = GMSMapView(frame: .zero, camera: sanFranciscoCamera)

// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

return mapView
}()
private lazy var boundMapView: GMSMapView = {
let mapView = GMSMapView(frame: .zero, camera: sanFranciscoCamera)

// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

return mapView
}()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ class FitBoundsViewController: UIViewController {
mapView.delegate = self
view = mapView

// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

// Creates a button that, when pressed, updates the camera to fit the bounds.
navigationItem.rightBarButtonItem = UIBarButtonItem(
title: "Fit Bounds", style: .plain, target: self, action: #selector(fitBounds))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class FrameRateViewController: UIViewController {
override func loadView() {
view = mapView

// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

statusTextView.text = ""
statusTextView.textAlignment = .center
statusTextView.backgroundColor = UIColor(white: 1, alpha: 0.8)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class GeocoderViewController: UIViewController {
override func loadView() {
view = mapView
mapView.delegate = self

// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class GestureControlViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()

// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

view.addSubview(mapView)

let holder = UIView(frame: .zero)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ final class GradientPolylinesViewController: UIViewController {
}()

override func loadView() {
// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

view = mapView
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ final class GroundOverlayViewController: UIViewController {
let newark = GMSGeometryInterpolate(southWest, northEast, 0.5)
let cameraPosition = GMSCameraPosition(target: newark, zoom: 12, bearing: 0, viewingAngle: 45)
let mapView = GMSMapView(frame: .zero, camera: cameraPosition)

// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

mapView.delegate = self
view = mapView

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class IndoorMuseumNavigationViewController: UIViewController {
private var sampleLevels: [SampleLevel] = []

override func loadView() {
// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

view = mapView
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ class MapLayerViewController: UIViewController {

override func loadView() {
mapView.isMyLocationEnabled = true

// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

view = mapView

navigationItem.rightBarButtonItem = UIBarButtonItem(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class MapTypesViewController: UIViewController {
}()

override func loadView() {
// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

view = mapView
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class MapZoomViewController: UIViewController {
let camera = GMSCameraPosition(latitude: -33.868, longitude: 151.2086, zoom: 6)
let mapView = GMSMapView(frame: .zero, camera: camera)
mapView.settings.scrollGestures = false
// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified
return mapView
}()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ final class MarkerEventsViewController: UIViewController {
sydneyMarker.map = mapView
melbourneMarker.map = mapView
mapView.delegate = self

// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

view = mapView
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ final class MarkerInfoWindowViewController: UIViewController {
override func loadView() {
let cameraPosition = GMSCameraPosition(latitude: -37.81969, longitude: 144.966085, zoom: 4)
let mapView = GMSMapView(frame: .zero, camera: cameraPosition)

// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

mapView.delegate = self
view = mapView

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ final class MarkerLayerViewController: UIViewController {

override func loadView() {
mapView.isMyLocationEnabled = true

// Opt the MapView into automatic dark mode switching.
mapView.overrideUserInterfaceStyle = .unspecified

view = mapView
mapView.delegate = self
}
Expand Down
Loading

0 comments on commit d3b905c

Please sign in to comment.