Use this component to add Google maps to your application. Once implemented, the view can be customized to your liking. Multiple pins can be added within a single map.
1) Add the MapKit.framework to your project.
2) Add the following files to your project:
mapAnnotation.h
mapAnnotation.m
googleMapViewController.h
googleMapViewController.m
3) Edit CLLocationCoordinate2D latitude and longitude in googleMapViewController.m to change pin positions
4) Edit mapAnnotation title and subtitle in googleMapViewController.m to change pin title and description
5) Include googleMapViewController.h into the view controller you want the video to display.
6) Initiate and add the googleMapViewController view to the stage.
Below is an example how to include the map in your app. Also see example project for help.
#import "example_ios_projectViewController.h"
#import "googleMapViewController.h"
@implementation example_ios_projectViewController
- (void)viewDidLoad {
[super viewDidLoad];
googleMapViewController *newView = [[googleMapViewController alloc] init];
newView.view.frame = CGRectMake(0, 0, 320, 460);
[self.view addSubview:newView.view];
}
@end
Questions & Comments