###ヘディングのテキスト###前提・実現したいこと
ここに質問したいことを詳細に書いてください
iosアプリの開発で言語はSwiftを用いています。
Yahooのsdkを用いて地図に雨雲のoverlayを追加したいと思っています。
地図は出るのですが雨雲が出てくれません。
https://developer.yahoo.co.jp/webapi/map/openlocalplatform/v1/iphonesdk/tutorial15.html
上記のサイトのobjective-cに習って色々と試してみましたが上手くいきません。
下記のエラーも出ています
アプリ開発初心者なのでまだかなり理解が浅いですがよろしくお願いします。
###発生している問題・エラーメッセージ
エラーメッセージ
directory not found for option '-F/Users/dapingshenye/Desktop/YMapKitTest/vendor'
###該当のソースコード
ここにご自身が実行したソースコードを書いてください import UIKit class ViewController: UIViewController, YMKMapViewDelegate,YMKWeatherOverlayDelegate{ var map: YMKMapView! var weatherOverlay: YMKWeatherOverlay! override func viewDidLoad() { super.viewDidLoad() // YMKMapViewのインスタンスを作成 map = YMKMapView(frame: CGRect(x: 0, y: 0, width: 320, height: 320), appid: "~") // 地図のタイプを指定 標準の地図を指定 map.mapType = UInt(YMKMapTypeStandard) // YMKMapViewを追加 self.view = map // YMKMapViewDelegateを登録 map.delegate = self // 地図の位置と縮尺を設定 var center = CLLocationCoordinate2D.init(); center.latitude = 35.6657214; center.longitude = 139.7310058; map.region = YMKCoordinateRegionMake(center, YMKCoordinateSpanMake(10, 10)); } private func mapView(mapView: YMKMapView!, viewForOverlay overlay:YMKWeatherOverlay!) -> YMKWeatherOverlayView{ let weatherOverlayView = YMKWeatherOverlayView(weatherOverlay: overlay) weatherOverlayView?.delegate = self weatherOverlayView?.alpha = 0.6 weatherOverlayView?.updateWeather() return weatherOverlayView! } func finishUpdateWeather(_ weatherOverlayView: YMKWeatherOverlayView!) { map.add(mapView(mapView: map, viewForOverlay: weatherOverlay) as! YMKOverlay) } func errorUpdateWeather(_ weatherOverlayView: YMKWeatherOverlayView!, withError error: Int32) { } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } } ###試したこと 課題に対してアプローチしたことを記載してください overlayの追加方法が上手くいっていないのかと思っています ###補足情報(言語/FW/ツール等のバージョンなど) より詳細な情報 Swift
回答1件
あなたの回答
tips
プレビュー