Skip to content

Commit fc87ddc

Browse files
committed
hello google maps
1 parent 0b86052 commit fc87ddc

File tree

609 files changed

+19992
-2383
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

609 files changed

+19992
-2383
lines changed

HackTX/AppDelegate.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#import "AppDelegate.h"
1010

1111
@import Firebase;
12+
@import GoogleMaps;
1213

1314
#import "AnnouncementsViewController.h"
1415
#import "ProfileViewController.h"
@@ -30,6 +31,7 @@ @implementation AppDelegate
3031
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
3132
// Override point for customization after application launch.
3233

34+
[GMSServices provideAPIKey:@"AIzaSyC8mM3hw_7LInrTqwnWQPSJmikX8O4LfeU"];
3335
[FIRApp configure];
3436

3537
ScheduleViewController *vc1 = [[ScheduleViewController alloc] init];

HackTX/MapViewController.m

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
#import "MapViewController.h"
10+
#import <GoogleMaps/GoogleMaps.h>
1011
#import "HTXAPI.h"
1112

1213
@interface MapViewController ()
@@ -15,6 +16,21 @@ @interface MapViewController ()
1516

1617
@implementation MapViewController
1718

19+
- (void)loadView {
20+
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:30.268915
21+
longitude:-97.740378
22+
zoom:19];
23+
GMSMapView *mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera];
24+
mapView.settings.rotateGestures = NO;
25+
self.view = mapView;
26+
27+
// Creates a marker in the center of the map.
28+
GMSMarker *marker = [[GMSMarker alloc] init];
29+
marker.position = CLLocationCoordinate2DMake(30.268915, -97.740378);
30+
marker.title = @"HackTX 2016";
31+
marker.map = mapView;
32+
}
33+
1834
- (void)viewDidLoad {
1935
[super viewDidLoad];
2036
// Do any additional setup after loading the view.

Podfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ target 'HackTX' do
1212
pod 'AFNetworking'
1313
pod 'FCAlertView'
1414
pod 'ChameleonFramework'
15+
pod 'GoogleMaps'
16+
pod 'GooglePlaces'
1517
end

Podfile.lock

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ PODS:
3232
- FirebaseInstanceID (1.0.8)
3333
- GoogleInterchangeUtilities (1.2.1):
3434
- GoogleSymbolUtilities (~> 1.0)
35+
- GoogleMaps (2.1.0):
36+
- GoogleMaps/Maps (= 2.1.0)
37+
- GoogleMaps/Base (2.1.0)
38+
- GoogleMaps/Maps (2.1.0):
39+
- GoogleMaps/Base (= 2.1.0)
40+
- GooglePlaces (2.1.0):
41+
- GoogleMaps/Base (= 2.1.0)
3542
- GoogleSymbolUtilities (1.1.1)
3643
- GoogleUtilities (1.3.1):
3744
- GoogleSymbolUtilities (~> 1.0)
@@ -45,6 +52,8 @@ DEPENDENCIES:
4552
- ChameleonFramework
4653
- FCAlertView
4754
- Firebase
55+
- GoogleMaps
56+
- GooglePlaces
4857
- MBProgressHUD (~> 1.0.0)
4958
- Realm
5059

@@ -56,11 +65,13 @@ SPEC CHECKSUMS:
5665
FirebaseAnalytics: 3f5358d9104adf159cc8d99b7b501e50099a39ad
5766
FirebaseInstanceID: ba1e640935235e5fac39dfa816fe7660e72e1a8a
5867
GoogleInterchangeUtilities: def8415a862effc67d549d5b5b0b9c7a2f97d4de
68+
GoogleMaps: 06589b9a38097bce0cd6e90f0fd9b5e4b4a9344c
69+
GooglePlaces: 16e96266483b8010e9f275399403647978523c86
5970
GoogleSymbolUtilities: 33117db1b5f290c6fbf259585e4885b4c84b98d7
6071
GoogleUtilities: 56c5ac05b7aa5dc417a1bb85221a9516e04d7032
6172
MBProgressHUD: 4890f671c94e8a0f3cf959aa731e9de2f036d71a
6273
Realm: 6dda421ae4b3e9a09742fc2cf4b876d459cbedcd
6374

64-
PODFILE CHECKSUM: 776c46c4e8bcad89996904f4241573b45d467231
75+
PODFILE CHECKSUM: aac7be216466248b87e14f5f37b56593e6e7d800
6576

6677
COCOAPODS: 1.0.1

0 commit comments

Comments
 (0)