2013-07-19 71 views

回答

0

如果你想在iOS yandex地圖上創建路線。

您可以使用此superstructure

1,您必須添加「Yandex的MapKit路線」到項目文件夾下的所有文件。

2在項目中使用的方法(如樣品):

[YandexMapKitRoute showRouteOnMap:self.mapView From:YMKMapCoordinateMake(55.837064,37.487895) To:YMKMapCoordinateMake(55.695618,37.657496)]; 

3並滾動到它

[self.mapView setCenterCoordinate:YMKMapCoordinateMake(55.754219,37.622478) 
         atZoomLevel:10 
         animated:NO];