Enviar búsqueda
Cargar
Google maps SDK for iOS 1.4
•
2 recomendaciones
•
1,497 vistas
Michael Pan
Seguir
Tecnología
Educación
Denunciar
Compartir
Denunciar
Compartir
1 de 32
Descargar ahora
Descargar para leer sin conexión
Recomendados
Google Map Android API V2 setup guide
Google Map Android API V2 setup guide
CAVEDU Education
GCPNext17' Extend 開始GCP了嗎?
GCPNext17' Extend 開始GCP了嗎?
Simon Su
Team6 - 穿戴式裝置開發工具
Team6 - 穿戴式裝置開發工具
nctusee
Android Jetpack Compose 簡介
Android Jetpack Compose 簡介
EnPing Eric Hsieh
Using google appengine_1027
Using google appengine_1027
Wei Sun
Road Map to iOS Development
Road Map to iOS Development
Hilal Baig
讓 HTML5 走進 IPTV Framework
讓 HTML5 走進 IPTV Framework
Jollen Chen
App introduction
App introduction
Jerromy Lee
Más contenido relacionado
Más de Michael Pan
Activity
Activity
Michael Pan
Shootting Game
Shootting Game
Michael Pan
Introduction to Android Studio
Introduction to Android Studio
Michael Pan
Eclipse and Genymotion
Eclipse and Genymotion
Michael Pan
Note something
Note something
Michael Pan
Strategy Pattern for Objective-C
Strategy Pattern for Objective-C
Michael Pan
Core data lightweight_migration
Core data lightweight_migration
Michael Pan
Homework2 play cards
Homework2 play cards
Michael Pan
Autorelease pool
Autorelease pool
Michael Pan
Objc under the_hood_2013
Objc under the_hood_2013
Michael Pan
Prototype by Xcode
Prototype by Xcode
Michael Pan
Dropbox sync
Dropbox sync
Michael Pan
Nimbus
Nimbus
Michael Pan
Superstar dj pdf
Superstar dj pdf
Michael Pan
ADB - Arthur
ADB - Arthur
Michael Pan
比價撿便宜 Steven
比價撿便宜 Steven
Michael Pan
Appsgaga - iOS Game Developer
Appsgaga - iOS Game Developer
Michael Pan
GZFox Inc. Jacky
GZFox Inc. Jacky
Michael Pan
創投公司 hoku_20121017
創投公司 hoku_20121017
Michael Pan
Opening iOS App 開發者交流會
Opening iOS App 開發者交流會
Michael Pan
Más de Michael Pan
(20)
Activity
Activity
Shootting Game
Shootting Game
Introduction to Android Studio
Introduction to Android Studio
Eclipse and Genymotion
Eclipse and Genymotion
Note something
Note something
Strategy Pattern for Objective-C
Strategy Pattern for Objective-C
Core data lightweight_migration
Core data lightweight_migration
Homework2 play cards
Homework2 play cards
Autorelease pool
Autorelease pool
Objc under the_hood_2013
Objc under the_hood_2013
Prototype by Xcode
Prototype by Xcode
Dropbox sync
Dropbox sync
Nimbus
Nimbus
Superstar dj pdf
Superstar dj pdf
ADB - Arthur
ADB - Arthur
比價撿便宜 Steven
比價撿便宜 Steven
Appsgaga - iOS Game Developer
Appsgaga - iOS Game Developer
GZFox Inc. Jacky
GZFox Inc. Jacky
創投公司 hoku_20121017
創投公司 hoku_20121017
Opening iOS App 開發者交流會
Opening iOS App 開發者交流會
Último
SymPy 在微積分上的應用_4.pptx SymPy 在微積分上的應用_4.pptx
SymPy 在微積分上的應用_4.pptx SymPy 在微積分上的應用_4.pptx
NCU MCL
函數畫圖_習題6.pptx 函數畫圖_習題6.pptx 函數畫圖_習題6.pptx
函數畫圖_習題6.pptx 函數畫圖_習題6.pptx 函數畫圖_習題6.pptx
NCU MCL
20151111 - IoT Sync Up
20151111 - IoT Sync Up
Jamie (Taka) Wang
20200323 - AI Intro
20200323 - AI Intro
Jamie (Taka) Wang
20200226 - AI Overview
20200226 - AI Overview
Jamie (Taka) Wang
函數畫圖_習題5.pptx 函數畫圖_習題5.pptx 函數畫圖_習題5.pptx
函數畫圖_習題5.pptx 函數畫圖_習題5.pptx 函數畫圖_習題5.pptx
NCU MCL
20161220 - domain-driven design
20161220 - domain-driven design
Jamie (Taka) Wang
函數微分_習題4.pptx 函數微分_習題4.pptx 函數微分_習題4.pptx
函數微分_習題4.pptx 函數微分_習題4.pptx 函數微分_習題4.pptx
NCU MCL
买假和真英国驾驶执照买了假的英国驾照,那跟真的有什么区别吗?买假和真正的澳大利亚驾驶执照【微信qoqoqdqd】
买假和真英国驾驶执照买了假的英国驾照,那跟真的有什么区别吗?买假和真正的澳大利亚驾驶执照【微信qoqoqdqd】
黑客 接单【TG/微信qoqoqdqd】
Entities in DCPS (DDS)
Entities in DCPS (DDS)
Jamie (Taka) Wang
函數畫圖_習題7.pptx 函數畫圖_習題7.pptx 函數畫圖_習題7.pptx
函數畫圖_習題7.pptx 函數畫圖_習題7.pptx 函數畫圖_習題7.pptx
NCU MCL
20161027 - edge part2
20161027 - edge part2
Jamie (Taka) Wang
SymPy 在微積分上的應用_5.pptx SymPy 在微積分上的應用_5.pptx
SymPy 在微積分上的應用_5.pptx SymPy 在微積分上的應用_5.pptx
NCU MCL
20211119 - demystified artificial intelligence with NLP
20211119 - demystified artificial intelligence with NLP
Jamie (Taka) Wang
20170104 - transaction_pattern
20170104 - transaction_pattern
Jamie (Taka) Wang
Último
(15)
SymPy 在微積分上的應用_4.pptx SymPy 在微積分上的應用_4.pptx
SymPy 在微積分上的應用_4.pptx SymPy 在微積分上的應用_4.pptx
函數畫圖_習題6.pptx 函數畫圖_習題6.pptx 函數畫圖_習題6.pptx
函數畫圖_習題6.pptx 函數畫圖_習題6.pptx 函數畫圖_習題6.pptx
20151111 - IoT Sync Up
20151111 - IoT Sync Up
20200323 - AI Intro
20200323 - AI Intro
20200226 - AI Overview
20200226 - AI Overview
函數畫圖_習題5.pptx 函數畫圖_習題5.pptx 函數畫圖_習題5.pptx
函數畫圖_習題5.pptx 函數畫圖_習題5.pptx 函數畫圖_習題5.pptx
20161220 - domain-driven design
20161220 - domain-driven design
函數微分_習題4.pptx 函數微分_習題4.pptx 函數微分_習題4.pptx
函數微分_習題4.pptx 函數微分_習題4.pptx 函數微分_習題4.pptx
买假和真英国驾驶执照买了假的英国驾照,那跟真的有什么区别吗?买假和真正的澳大利亚驾驶执照【微信qoqoqdqd】
买假和真英国驾驶执照买了假的英国驾照,那跟真的有什么区别吗?买假和真正的澳大利亚驾驶执照【微信qoqoqdqd】
Entities in DCPS (DDS)
Entities in DCPS (DDS)
函數畫圖_習題7.pptx 函數畫圖_習題7.pptx 函數畫圖_習題7.pptx
函數畫圖_習題7.pptx 函數畫圖_習題7.pptx 函數畫圖_習題7.pptx
20161027 - edge part2
20161027 - edge part2
SymPy 在微積分上的應用_5.pptx SymPy 在微積分上的應用_5.pptx
SymPy 在微積分上的應用_5.pptx SymPy 在微積分上的應用_5.pptx
20211119 - demystified artificial intelligence with NLP
20211119 - demystified artificial intelligence with NLP
20170104 - transaction_pattern
20170104 - transaction_pattern
Google maps SDK for iOS 1.4
1.
Google Map SDK
for iOS Michael Pan 13年8月12⽇日星期⼀一
2.
Official Web Page http://bit.ly/12j2w8r 13年8月12⽇日星期⼀一
3.
We want to
build 13年8月12⽇日星期⼀一
4.
Get Google Map
API Key • 從 Google APIs Console 產⽣生 API 專案. 13年8月12⽇日星期⼀一
5.
Google API Console
- My Project 13年8月12⽇日星期⼀一
6.
Services ≈ 13年8月12⽇日星期⼀一
7.
Create new iOS
Key 13年8月12⽇日星期⼀一
8.
Configure Project • Input
bundle ID 13年8月12⽇日星期⼀一
9.
API Console Updated 13年8月12⽇日星期⼀一
10.
Download SDK • https://dl.google.com/geosdk/GoogleMaps-iOS-1.4.0.zip •
Version 1.4.0 (July 2013) • 13年8月12⽇日星期⼀一
11.
Drag Framework into
Project 1.4 13年8月12⽇日星期⼀一
12.
Drag Framework into
Project 1.4 13年8月12⽇日星期⼀一
13.
Drag GoogleMaps.bundle 1.4 13年8月12⽇日星期⼀一
14.
Drag GoogleMaps.bundle 1.4 13年8月12⽇日星期⼀一
15.
Google Maps SDK
Framework 13年8月12⽇日星期⼀一
16.
Configure Xcode Project
- Library 原本就有, 其他請⼿手動加⼊入 1.1 13年8月12⽇日星期⼀一
17.
Configure Xcode Project
- Library 原本就有, 其他請⼿手動加⼊入 1.4 13年8月12⽇日星期⼀一
18.
Setting 13年8月12⽇日星期⼀一
19.
Create SingleView Application UIView 13年8月12⽇日星期⼀一
20.
Some code with
Key • AppDelegate.m #import "AppDelegate.h" #import <GoogleMaps/GoogleMaps.h> @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [GMSServices provideAPIKey:@"key-Nk64"]; return YES; } 13年8月12⽇日星期⼀一
21.
Change Class @interface ViewController
() @property (weak, nonatomic) IBOutlet GMSMapView *gmapView; @end 13年8月12⽇日星期⼀一
22.
Run it 13年8月12⽇日星期⼀一
23.
User Location -View
Controller - (void)viewDidLoad { [super viewDidLoad]; self.gMapView.myLocationEnabled = YES; self.gMapView.settings.myLocationButton = YES; } 13年8月12⽇日星期⼀一
24.
Run 13年8月12⽇日星期⼀一
25.
Zoom Action - (IBAction)moveToLocation:(id)sender
{ CLLocationCoordinate2D userLocation = self.gMapView.myLocation.coordinate; self.gMapView.camera =[GMSCameraPosition cameraWithLatitude:userLocation.latitude longitude:userLocation.longitude zoom: 20]; } 1.4 13年8月12⽇日星期⼀一
26.
Add mark - (IBAction)addMark:(id)sender
{ CLLocationCoordinate2D userLocation = self.gMapView.myLocation.coordinate; GMSMarker *school = [[GMSMarker alloc] init]; school.position = CLLocationCoordinate2DMake(userLocation.latitude +0.001, userLocation.longitude+0.001); school.snippet = @"School"; school.map = self.gMapView; GMSMarker *hostpital = [[GMSMarker alloc] init]; hostpital.position = CLLocationCoordinate2DMake(userLocation.latitude-0.001, userLocation.longitude-0.001); hostpital.snippet = @"Hospital"; hostpital.map = self.gMapView; } 13年8月12⽇日星期⼀一
27.
Add markers 13年8月12⽇日星期⼀一
28.
StreetView • GMSPanoramaView • GMSPanoramaViewDelegate 13年8月12⽇日星期⼀一
29.
StreetViewController.m -(void) loadView{ [super loadView]; self.view
= [GMSPanoramaView panoramaWithFrame:CGRectZero nearCoordinate:self.nearCoordinate]; [(GMSPanoramaView *)self.view setDelegate:self]; } - (void)panoramaView:(GMSPanoramaView *)panoramaView didMoveCamera:(GMSPanoramaCamera *)camera { NSLog(@"Camera: (%f,%f,%f)", camera.orientation.heading, camera.orientation.pitch, camera.zoom); } 13年8月12⽇日星期⼀一
30.
Tap info window
of Marker -(void) mapView:(GMSMapView *)mapView didTapInfoWindowOfMarker:(GMSMarker *)marker{ NSLog(@"%@", marker.snippet); StreetViewController * streetViewController = [StreetViewController new]; streetViewController.nearCoordinate = CLLocationCoordinate2DMake(40.761388, -73.978133); [self presentViewController:streetViewController animated:YES completion:^{ ; }]; } self.gMapView.delegate = self; 13年8月12⽇日星期⼀一
31.
Run 13年8月12⽇日星期⼀一
32.
Traffic Info - (IBAction)showTraffic:(UISwitch
*)sender { self.gMapView.trafficEnabled = sender.on; } 13年8月12⽇日星期⼀一
Descargar ahora