0
次のメソッドがビューコントローラクラスで定義されています。このコードの最後の行では、ドラッグ可能な属性をYESに設定すると宣言していますが、アプリでは機能しません。Google Maps iOSアプリでドラッグが機能しないのですか?
これはどうしてですか?あなたは長い間、あなたはそれをドラッグすることができ、マーカーをプッシュする必要があり
- (void)mapView:(GMSMapView *)mapView didTapAtCoordinate:(CLLocationCoordinate2D)coordinate {
CLLocationDegrees latitude = -33.861;
CLLocationDegrees longitude = 151.20;
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position = CLLocationCoordinate2DMake(latitude,longitude);
marker.map = _mapView;
marker.draggable = YES;
}
ありがとう – konyv12