وقتی نقشه را برای مدت طولانی لمس کنید، مختصات حرکت به سرویس ژئوکدینگ معکوس ارسال میشود. در صورت موفقیت، یک نشانگر با یک پنجره اطلاعات حاوی نتیجه به نقشه اضافه میشود.
شروع کنید
قبل از اینکه بتوانید کد نمونه را امتحان کنید، باید محیط توسعه خود را پیکربندی کنید. برای اطلاعات بیشتر، برای نمونه کدهای iOS به Maps SDK مراجعه کنید.
کد را مشاهده کنید
سویفت
import GoogleMaps import UIKit // Sample code for GeoCoder service. class GeocoderViewController: UIViewController { private lazy var mapView: GMSMapView = { let camera = GMSCameraPosition(latitude: -33.868, longitude: 151.2086, zoom: 12) return GMSMapView(frame: .zero, camera: camera) }() private lazy var geocoder = GMSGeocoder() override func loadView() { view = mapView mapView.delegate = self } } extension GeocoderViewController: GMSMapViewDelegate { func mapView(_ mapView: GMSMapView, didLongPressAt coordinate: CLLocationCoordinate2D) { // On a long press, reverse geocode this location. geocoder.reverseGeocodeCoordinate(coordinate) { response, error in guard let address = response?.firstResult() else { let errorMessage = error.map { String(describing: $0) } ?? "<no error>" print( "Could not reverse geocode point (\(coordinate.latitude), \(coordinate.longitude)): \(errorMessage)" ) return } print("Geocoder result: \(address)") let marker = GMSMarker(position: address.coordinate) marker.appearAnimation = .pop marker.map = mapView guard let lines = address.lines, let title = lines.first else { return } marker.title = title if lines.count > 1 { marker.snippet = lines[1] } } } }
هدف-سی
#import "GoogleMapsDemos/Samples/GeocoderViewController.h" #import <GoogleMaps/GoogleMaps.h> @implementation GeocoderViewController { GMSMapView *_mapView; GMSGeocoder *_geocoder; } - (void)viewDidLoad { [super viewDidLoad]; GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.868 longitude:151.2086 zoom:12]; _mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera]; _mapView.delegate = self; _geocoder = [[GMSGeocoder alloc] init]; self.view = _mapView; } - (void)mapView:(GMSMapView *)mapView didLongPressAtCoordinate:(CLLocationCoordinate2D)coordinate { // On a long press, reverse geocode this location. __weak __typeof__(self) weakSelf = self; GMSReverseGeocodeCallback handler = ^(GMSReverseGeocodeResponse *response, NSError *error) { [weakSelf handleResponse:response coordinate:coordinate error:error]; }; [_geocoder reverseGeocodeCoordinate:coordinate completionHandler:handler]; } - (void)handleResponse:(nullable GMSReverseGeocodeResponse *)response coordinate:(CLLocationCoordinate2D)coordinate error:(nullable NSError *)error { GMSAddress *address = response.firstResult; if (address) { NSLog(@"Geocoder result: %@", address); GMSMarker *marker = [GMSMarker markerWithPosition:address.coordinate]; NSArray<NSString *> *lines = [address lines]; marker.title = [lines firstObject]; if (lines.count > 1) { marker.snippet = [lines objectAtIndex:1]; } marker.appearAnimation = kGMSMarkerAnimationPop; marker.map = _mapView; } else { NSLog(@"Could not reverse geocode point (%f,%f): %@", coordinate.latitude, coordinate.longitude, error); } } @end
اجرای کامل برنامه نمونه به صورت محلی
برنامه نمونه Maps SDK برای iOS به صورت آرشیو دانلود از GitHub در دسترس است. برای نصب و امتحان کردن برنامه نمونه Maps SDK برای iOS، این مراحل را دنبال کنید.
-
git clone https://github.com/googlemaps-samples/maps-sdk-for-ios-samples.gitرا اجرا کنید تا مخزن نمونهها در یک دایرکتوری محلی کلون شود. یک پنجره ترمینال باز کنید، به دایرکتوری که فایلهای نمونه را در آن کلون کردهاید بروید و به دایرکتوری GoogleMaps بروید:
سویفت
cd maps-sdk-for-ios-samples/GoogleMaps-Swift
open GoogleMapsSwiftXCFrameworkDemos.xcodeprojهدف-سی
cd maps-sdk-for-ios-samples-main/GoogleMaps
open GoogleMapsDemos.xcodeproj- در پروژه Xcode، به File > Add Package Dependencies بروید.
https://github.com/googlemaps/ios-maps-sdkبه عنوان URL وارد کنید، Enter را بزنید تا بسته را دریافت کنید و روی Add Package کلیک کنید. - در Xcode، دکمه کامپایل را فشار دهید تا برنامه با طرح فعلی ساخته شود . هنگام ساخت، خطایی ایجاد میشود که از شما میخواهد کلید API خود را در فایل
SDKConstants.swiftبرای Swift یا فایلSDKDemoAPIKey.hبرای Objective-C وارد کنید. - یک کلید API از پروژه خود که Maps SDK برای iOS در آن فعال است، دریافت کنید.
- فایل
SDKConstants.swiftبرای Swift یا فایلSDKDemoAPIKey.hرا برای Objective-C ویرایش کنید و کلید API خود را در تعریف ثابتapiKeyیاkAPIKeyقرار دهید. برای مثال:سویفت
static let apiKey = "YOUR_API_KEY"هدف-سی
static NSString *const kAPIKey = @"YOUR_API_KEY";
- در فایل
SDKConstants.swift(Swift) یا فایلSDKDemoAPIKey.h(Objective-C)، خط زیر را حذف کنید، زیرا برای ثبت مشکل تعریفشده توسط کاربر استفاده میشود:سویفت
#error (Register for API Key and insert here. Then delete this line.)
هدف-سی
#error Register for API Key and insert here.
- پروژه را بسازید و اجرا کنید. پنجره شبیهساز iOS ظاهر میشود و لیستی از نسخههای نمایشی Maps SDK را نشان میدهد.
- برای آزمایش یکی از ویژگیهای Maps SDK برای iOS، یکی از گزینههای نمایش داده شده را انتخاب کنید.
- اگر از شما خواسته شد که به GoogleMapsDemos اجازه دسترسی به موقعیت مکانی خود را بدهید، Allow را انتخاب کنید.
وقتی نقشه را برای مدت طولانی لمس کنید، مختصات حرکت به سرویس ژئوکدینگ معکوس ارسال میشود. در صورت موفقیت، یک نشانگر با یک پنجره اطلاعات حاوی نتیجه به نقشه اضافه میشود.
شروع کنید
قبل از اینکه بتوانید کد نمونه را امتحان کنید، باید محیط توسعه خود را پیکربندی کنید. برای اطلاعات بیشتر، برای نمونه کدهای iOS به Maps SDK مراجعه کنید.
کد را مشاهده کنید
سویفت
import GoogleMaps import UIKit // Sample code for GeoCoder service. class GeocoderViewController: UIViewController { private lazy var mapView: GMSMapView = { let camera = GMSCameraPosition(latitude: -33.868, longitude: 151.2086, zoom: 12) return GMSMapView(frame: .zero, camera: camera) }() private lazy var geocoder = GMSGeocoder() override func loadView() { view = mapView mapView.delegate = self } } extension GeocoderViewController: GMSMapViewDelegate { func mapView(_ mapView: GMSMapView, didLongPressAt coordinate: CLLocationCoordinate2D) { // On a long press, reverse geocode this location. geocoder.reverseGeocodeCoordinate(coordinate) { response, error in guard let address = response?.firstResult() else { let errorMessage = error.map { String(describing: $0) } ?? "<no error>" print( "Could not reverse geocode point (\(coordinate.latitude), \(coordinate.longitude)): \(errorMessage)" ) return } print("Geocoder result: \(address)") let marker = GMSMarker(position: address.coordinate) marker.appearAnimation = .pop marker.map = mapView guard let lines = address.lines, let title = lines.first else { return } marker.title = title if lines.count > 1 { marker.snippet = lines[1] } } } }
هدف-سی
#import "GoogleMapsDemos/Samples/GeocoderViewController.h" #import <GoogleMaps/GoogleMaps.h> @implementation GeocoderViewController { GMSMapView *_mapView; GMSGeocoder *_geocoder; } - (void)viewDidLoad { [super viewDidLoad]; GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.868 longitude:151.2086 zoom:12]; _mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera]; _mapView.delegate = self; _geocoder = [[GMSGeocoder alloc] init]; self.view = _mapView; } - (void)mapView:(GMSMapView *)mapView didLongPressAtCoordinate:(CLLocationCoordinate2D)coordinate { // On a long press, reverse geocode this location. __weak __typeof__(self) weakSelf = self; GMSReverseGeocodeCallback handler = ^(GMSReverseGeocodeResponse *response, NSError *error) { [weakSelf handleResponse:response coordinate:coordinate error:error]; }; [_geocoder reverseGeocodeCoordinate:coordinate completionHandler:handler]; } - (void)handleResponse:(nullable GMSReverseGeocodeResponse *)response coordinate:(CLLocationCoordinate2D)coordinate error:(nullable NSError *)error { GMSAddress *address = response.firstResult; if (address) { NSLog(@"Geocoder result: %@", address); GMSMarker *marker = [GMSMarker markerWithPosition:address.coordinate]; NSArray<NSString *> *lines = [address lines]; marker.title = [lines firstObject]; if (lines.count > 1) { marker.snippet = [lines objectAtIndex:1]; } marker.appearAnimation = kGMSMarkerAnimationPop; marker.map = _mapView; } else { NSLog(@"Could not reverse geocode point (%f,%f): %@", coordinate.latitude, coordinate.longitude, error); } } @end
اجرای کامل برنامه نمونه به صورت محلی
برنامه نمونه Maps SDK برای iOS به صورت آرشیو دانلود از GitHub در دسترس است. برای نصب و امتحان کردن برنامه نمونه Maps SDK برای iOS، این مراحل را دنبال کنید.
-
git clone https://github.com/googlemaps-samples/maps-sdk-for-ios-samples.gitرا اجرا کنید تا مخزن نمونهها در یک دایرکتوری محلی کلون شود. یک پنجره ترمینال باز کنید، به دایرکتوری که فایلهای نمونه را در آن کلون کردهاید بروید و به دایرکتوری GoogleMaps بروید:
سویفت
cd maps-sdk-for-ios-samples/GoogleMaps-Swift
open GoogleMapsSwiftXCFrameworkDemos.xcodeprojهدف-سی
cd maps-sdk-for-ios-samples-main/GoogleMaps
open GoogleMapsDemos.xcodeproj- در پروژه Xcode، به File > Add Package Dependencies بروید.
https://github.com/googlemaps/ios-maps-sdkبه عنوان URL وارد کنید، Enter را بزنید تا بسته را دریافت کنید و روی Add Package کلیک کنید. - در Xcode، دکمه کامپایل را فشار دهید تا برنامه با طرح فعلی ساخته شود . هنگام ساخت، خطایی ایجاد میشود که از شما میخواهد کلید API خود را در فایل
SDKConstants.swiftبرای Swift یا فایلSDKDemoAPIKey.hبرای Objective-C وارد کنید. - یک کلید API از پروژه خود که Maps SDK برای iOS در آن فعال است، دریافت کنید.
- فایل
SDKConstants.swiftبرای Swift یا فایلSDKDemoAPIKey.hرا برای Objective-C ویرایش کنید و کلید API خود را در تعریف ثابتapiKeyیاkAPIKeyقرار دهید. برای مثال:سویفت
static let apiKey = "YOUR_API_KEY"هدف-سی
static NSString *const kAPIKey = @"YOUR_API_KEY";
- در فایل
SDKConstants.swift(Swift) یا فایلSDKDemoAPIKey.h(Objective-C)، خط زیر را حذف کنید، زیرا برای ثبت مشکل تعریفشده توسط کاربر استفاده میشود:سویفت
#error (Register for API Key and insert here. Then delete this line.)
هدف-سی
#error Register for API Key and insert here.
- پروژه را بسازید و اجرا کنید. پنجره شبیهساز iOS ظاهر میشود و لیستی از نسخههای نمایشی Maps SDK را نشان میدهد.
- برای آزمایش یکی از ویژگیهای Maps SDK برای iOS، یکی از گزینههای نمایش داده شده را انتخاب کنید.
- اگر از شما خواسته شد که به GoogleMapsDemos اجازه دسترسی به موقعیت مکانی خود را بدهید، Allow را انتخاب کنید.
وقتی نقشه را برای مدت طولانی لمس کنید، مختصات حرکت به سرویس ژئوکدینگ معکوس ارسال میشود. در صورت موفقیت، یک نشانگر با یک پنجره اطلاعات حاوی نتیجه به نقشه اضافه میشود.
شروع کنید
قبل از اینکه بتوانید کد نمونه را امتحان کنید، باید محیط توسعه خود را پیکربندی کنید. برای اطلاعات بیشتر، برای نمونه کدهای iOS به Maps SDK مراجعه کنید.
کد را مشاهده کنید
سویفت
import GoogleMaps import UIKit // Sample code for GeoCoder service. class GeocoderViewController: UIViewController { private lazy var mapView: GMSMapView = { let camera = GMSCameraPosition(latitude: -33.868, longitude: 151.2086, zoom: 12) return GMSMapView(frame: .zero, camera: camera) }() private lazy var geocoder = GMSGeocoder() override func loadView() { view = mapView mapView.delegate = self } } extension GeocoderViewController: GMSMapViewDelegate { func mapView(_ mapView: GMSMapView, didLongPressAt coordinate: CLLocationCoordinate2D) { // On a long press, reverse geocode this location. geocoder.reverseGeocodeCoordinate(coordinate) { response, error in guard let address = response?.firstResult() else { let errorMessage = error.map { String(describing: $0) } ?? "<no error>" print( "Could not reverse geocode point (\(coordinate.latitude), \(coordinate.longitude)): \(errorMessage)" ) return } print("Geocoder result: \(address)") let marker = GMSMarker(position: address.coordinate) marker.appearAnimation = .pop marker.map = mapView guard let lines = address.lines, let title = lines.first else { return } marker.title = title if lines.count > 1 { marker.snippet = lines[1] } } } }
هدف-سی
#import "GoogleMapsDemos/Samples/GeocoderViewController.h" #import <GoogleMaps/GoogleMaps.h> @implementation GeocoderViewController { GMSMapView *_mapView; GMSGeocoder *_geocoder; } - (void)viewDidLoad { [super viewDidLoad]; GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.868 longitude:151.2086 zoom:12]; _mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera]; _mapView.delegate = self; _geocoder = [[GMSGeocoder alloc] init]; self.view = _mapView; } - (void)mapView:(GMSMapView *)mapView didLongPressAtCoordinate:(CLLocationCoordinate2D)coordinate { // On a long press, reverse geocode this location. __weak __typeof__(self) weakSelf = self; GMSReverseGeocodeCallback handler = ^(GMSReverseGeocodeResponse *response, NSError *error) { [weakSelf handleResponse:response coordinate:coordinate error:error]; }; [_geocoder reverseGeocodeCoordinate:coordinate completionHandler:handler]; } - (void)handleResponse:(nullable GMSReverseGeocodeResponse *)response coordinate:(CLLocationCoordinate2D)coordinate error:(nullable NSError *)error { GMSAddress *address = response.firstResult; if (address) { NSLog(@"Geocoder result: %@", address); GMSMarker *marker = [GMSMarker markerWithPosition:address.coordinate]; NSArray<NSString *> *lines = [address lines]; marker.title = [lines firstObject]; if (lines.count > 1) { marker.snippet = [lines objectAtIndex:1]; } marker.appearAnimation = kGMSMarkerAnimationPop; marker.map = _mapView; } else { NSLog(@"Could not reverse geocode point (%f,%f): %@", coordinate.latitude, coordinate.longitude, error); } } @end
اجرای کامل برنامه نمونه به صورت محلی
برنامه نمونه Maps SDK برای iOS به صورت آرشیو دانلود از GitHub در دسترس است. برای نصب و امتحان کردن برنامه نمونه Maps SDK برای iOS، این مراحل را دنبال کنید.
-
git clone https://github.com/googlemaps-samples/maps-sdk-for-ios-samples.gitرا اجرا کنید تا مخزن نمونهها در یک دایرکتوری محلی کلون شود. یک پنجره ترمینال باز کنید، به دایرکتوری که فایلهای نمونه را در آن کلون کردهاید بروید و به دایرکتوری GoogleMaps بروید:
سویفت
cd maps-sdk-for-ios-samples/GoogleMaps-Swift
open GoogleMapsSwiftXCFrameworkDemos.xcodeprojهدف-سی
cd maps-sdk-for-ios-samples-main/GoogleMaps
open GoogleMapsDemos.xcodeproj- در پروژه Xcode، به File > Add Package Dependencies بروید.
https://github.com/googlemaps/ios-maps-sdkبه عنوان URL وارد کنید، Enter را بزنید تا بسته را دریافت کنید و روی Add Package کلیک کنید. - در Xcode، دکمه کامپایل را فشار دهید تا برنامه با طرح فعلی ساخته شود . هنگام ساخت، خطایی ایجاد میشود که از شما میخواهد کلید API خود را در فایل
SDKConstants.swiftبرای Swift یا فایلSDKDemoAPIKey.hبرای Objective-C وارد کنید. - یک کلید API از پروژه خود که Maps SDK برای iOS در آن فعال است، دریافت کنید.
- فایل
SDKConstants.swiftبرای Swift یا فایلSDKDemoAPIKey.hرا برای Objective-C ویرایش کنید و کلید API خود را در تعریف ثابتapiKeyیاkAPIKeyقرار دهید. برای مثال:سویفت
static let apiKey = "YOUR_API_KEY"هدف-سی
static NSString *const kAPIKey = @"YOUR_API_KEY";
- در فایل
SDKConstants.swift(Swift) یا فایلSDKDemoAPIKey.h(Objective-C)، خط زیر را حذف کنید، زیرا برای ثبت مشکل تعریفشده توسط کاربر استفاده میشود:سویفت
#error (Register for API Key and insert here. Then delete this line.)
هدف-سی
#error Register for API Key and insert here.
- پروژه را بسازید و اجرا کنید. پنجره شبیهساز iOS ظاهر میشود و لیستی از نسخههای نمایشی Maps SDK را نشان میدهد.
- برای آزمایش یکی از ویژگیهای Maps SDK برای iOS، یکی از گزینههای نمایش داده شده را انتخاب کنید.
- اگر از شما خواسته شد که به GoogleMapsDemos اجازه دسترسی به موقعیت مکانی خود را بدهید، Allow را انتخاب کنید.
وقتی نقشه را برای مدت طولانی لمس کنید، مختصات حرکت به سرویس ژئوکدینگ معکوس ارسال میشود. در صورت موفقیت، یک نشانگر با یک پنجره اطلاعات حاوی نتیجه به نقشه اضافه میشود.
شروع کنید
قبل از اینکه بتوانید کد نمونه را امتحان کنید، باید محیط توسعه خود را پیکربندی کنید. برای اطلاعات بیشتر، برای نمونه کدهای iOS به Maps SDK مراجعه کنید.
کد را مشاهده کنید
سویفت
import GoogleMaps import UIKit // Sample code for GeoCoder service. class GeocoderViewController: UIViewController { private lazy var mapView: GMSMapView = { let camera = GMSCameraPosition(latitude: -33.868, longitude: 151.2086, zoom: 12) return GMSMapView(frame: .zero, camera: camera) }() private lazy var geocoder = GMSGeocoder() override func loadView() { view = mapView mapView.delegate = self } } extension GeocoderViewController: GMSMapViewDelegate { func mapView(_ mapView: GMSMapView, didLongPressAt coordinate: CLLocationCoordinate2D) { // On a long press, reverse geocode this location. geocoder.reverseGeocodeCoordinate(coordinate) { response, error in guard let address = response?.firstResult() else { let errorMessage = error.map { String(describing: $0) } ?? "<no error>" print( "Could not reverse geocode point (\(coordinate.latitude), \(coordinate.longitude)): \(errorMessage)" ) return } print("Geocoder result: \(address)") let marker = GMSMarker(position: address.coordinate) marker.appearAnimation = .pop marker.map = mapView guard let lines = address.lines, let title = lines.first else { return } marker.title = title if lines.count > 1 { marker.snippet = lines[1] } } } }
هدف-سی
#import "GoogleMapsDemos/Samples/GeocoderViewController.h" #import <GoogleMaps/GoogleMaps.h> @implementation GeocoderViewController { GMSMapView *_mapView; GMSGeocoder *_geocoder; } - (void)viewDidLoad { [super viewDidLoad]; GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.868 longitude:151.2086 zoom:12]; _mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera]; _mapView.delegate = self; _geocoder = [[GMSGeocoder alloc] init]; self.view = _mapView; } - (void)mapView:(GMSMapView *)mapView didLongPressAtCoordinate:(CLLocationCoordinate2D)coordinate { // On a long press, reverse geocode this location. __weak __typeof__(self) weakSelf = self; GMSReverseGeocodeCallback handler = ^(GMSReverseGeocodeResponse *response, NSError *error) { [weakSelf handleResponse:response coordinate:coordinate error:error]; }; [_geocoder reverseGeocodeCoordinate:coordinate completionHandler:handler]; } - (void)handleResponse:(nullable GMSReverseGeocodeResponse *)response coordinate:(CLLocationCoordinate2D)coordinate error:(nullable NSError *)error { GMSAddress *address = response.firstResult; if (address) { NSLog(@"Geocoder result: %@", address); GMSMarker *marker = [GMSMarker markerWithPosition:address.coordinate]; NSArray<NSString *> *lines = [address lines]; marker.title = [lines firstObject]; if (lines.count > 1) { marker.snippet = [lines objectAtIndex:1]; } marker.appearAnimation = kGMSMarkerAnimationPop; marker.map = _mapView; } else { NSLog(@"Could not reverse geocode point (%f,%f): %@", coordinate.latitude, coordinate.longitude, error); } } @end
اجرای کامل برنامه نمونه به صورت محلی
برنامه نمونه Maps SDK برای iOS به صورت آرشیو دانلود از GitHub در دسترس است. برای نصب و امتحان کردن برنامه نمونه Maps SDK برای iOS، این مراحل را دنبال کنید.
-
git clone https://github.com/googlemaps-samples/maps-sdk-for-ios-samples.gitرا اجرا کنید تا مخزن نمونهها در یک دایرکتوری محلی کلون شود. یک پنجره ترمینال باز کنید، به دایرکتوری که فایلهای نمونه را در آن کلون کردهاید بروید و به دایرکتوری GoogleMaps بروید:
سویفت
cd maps-sdk-for-ios-samples/GoogleMaps-Swift
open GoogleMapsSwiftXCFrameworkDemos.xcodeprojهدف-سی
cd maps-sdk-for-ios-samples-main/GoogleMaps
open GoogleMapsDemos.xcodeproj- در پروژه Xcode، به File > Add Package Dependencies بروید.
https://github.com/googlemaps/ios-maps-sdkبه عنوان URL وارد کنید، Enter را بزنید تا بسته را دریافت کنید و روی Add Package کلیک کنید. - در Xcode، دکمه کامپایل را فشار دهید تا برنامه با طرح فعلی ساخته شود . هنگام ساخت، خطایی ایجاد میشود که از شما میخواهد کلید API خود را در فایل
SDKConstants.swiftبرای Swift یا فایلSDKDemoAPIKey.hبرای Objective-C وارد کنید. - یک کلید API از پروژه خود که Maps SDK برای iOS در آن فعال است، دریافت کنید.
- فایل
SDKConstants.swiftبرای Swift یا فایلSDKDemoAPIKey.hرا برای Objective-C ویرایش کنید و کلید API خود را در تعریف ثابتapiKeyیاkAPIKeyقرار دهید. برای مثال:سویفت
static let apiKey = "YOUR_API_KEY"هدف-سی
static NSString *const kAPIKey = @"YOUR_API_KEY";
- در فایل
SDKConstants.swift(Swift) یا فایلSDKDemoAPIKey.h(Objective-C)، خط زیر را حذف کنید، زیرا برای ثبت مشکل تعریفشده توسط کاربر استفاده میشود:سویفت
#error (Register for API Key and insert here. Then delete this line.)
هدف-سی
#error Register for API Key and insert here.
- پروژه را بسازید و اجرا کنید. پنجره شبیهساز iOS ظاهر میشود و لیستی از نسخههای نمایشی Maps SDK را نشان میدهد.
- برای آزمایش یکی از ویژگیهای Maps SDK برای iOS، یکی از گزینههای نمایش داده شده را انتخاب کنید.
- اگر از شما خواسته شد که به GoogleMapsDemos اجازه دسترسی به موقعیت مکانی خود را بدهید، Allow را انتخاب کنید.