You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
655 B
23 lines
655 B
![]()
2 years ago
|
#if !defined(__has_feature) || !__has_feature(objc_arc)
|
||
|
#error "This file requires ARC support."
|
||
|
#endif
|
||
|
|
||
|
#import "GoogleMapsDemos/Samples/TrafficMapViewController.h"
|
||
|
|
||
|
#import <GoogleMaps/GoogleMaps.h>
|
||
|
|
||
|
@implementation TrafficMapViewController
|
||
|
|
||
|
- (void)viewDidLoad {
|
||
|
[super viewDidLoad];
|
||
|
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.868
|
||
|
longitude:151.2086
|
||
|
zoom:12];
|
||
|
|
||
|
GMSMapView *mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera];
|
||
|
mapView.trafficEnabled = YES;
|
||
|
self.view = mapView;
|
||
|
}
|
||
|
|
||
|
@end
|