本ページの内容は、サンプルプログラム[TutorialSample.zip]に含まれています。
// 地図画面を呼び出すと、設定しておいたコンテンツが地図上に表示される let navigationController = PicnicRootNavigationController.instantiate(.Map) self.presentViewController(navigationController, animated: true, completion: nil)サンプルプログラムTutorialSampleでは、ViewController.swiftのmapClickメソッドに記載されています。
// 地図画面の初期設定を行う // 緯度 PicnicMapSettings.initialLatitude = 35.562358 // 経度 PicnicMapSettings.initialLongitude = 139.715119 // 地図拡大率(画面に表示する初期範囲。mで指定。例えば、500を指定すると500m四方が初期表示範囲となる。) PicnicMapSettings.initialZoomLevel = 500 // AR画面に移動するボタンを地図画面上に表示するか PicnicMapSettings.isVisibleARButton = trueサンプルプログラムTutorialSampleでは、ViewController.swiftのinitializePicnicSDKメソッドに記載されています。
Key : NSLocationWhenInUseUsageDescription Type : String Value : Your current location may be shown on the map and may be use to display contents on the AR view.