Skip to content

Commit

Permalink
chore: update obj-c sample app GMSMapView initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
wangela committed Dec 22, 2023
1 parent 05b8ef4 commit 0720ccd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions samples/ObjCDemoApp/ObjCDemoApp.xcodeproj/project.pbxproj
Expand Up @@ -197,12 +197,11 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-ObjCDemoApp/Pods-ObjCDemoApp-resources.sh",
"${PODS_ROOT}/GoogleMaps/Maps/Frameworks/GoogleMaps.xcframework/ios-arm64/GoogleMaps.framework/Resources/GoogleMaps.bundle",
"${PODS_ROOT}/GoogleMaps/Maps/Frameworks/GoogleMaps.xcframework/ios-arm64_x86_64-simulator/GoogleMaps.framework/Resources/GoogleMaps.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/GoogleMaps/GoogleMapsResources.bundle",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleMaps.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleMapsResources.bundle",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down
4 changes: 3 additions & 1 deletion samples/ObjCDemoApp/ObjCDemoApp/ViewController.m
Expand Up @@ -55,7 +55,9 @@ @implementation ViewController {
- (void)loadView {
GMSCameraPosition *camera =
[GMSCameraPosition cameraWithLatitude:kCameraLatitude longitude:kCameraLongitude zoom:10];
_mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera];
GMSMapViewOptions *options = [[GMSMapViewOptions alloc] init];
options.camera = camera;
_mapView = [[GMSMapView alloc] initWithOptions:options];
self.view = _mapView;
}

Expand Down

0 comments on commit 0720ccd

Please sign in to comment.