地圖手指拖曳平移

地圖手指拖曳平移設定

提供設定地圖手指拖曳平移設定功能,設定地圖介面是否可平移,設定程式範例如下:

- (void)loadView

{

mapView_ = [[TGMapView alloc] initWithFrame:CGRectZero];

self.view =  mapView_;

mapView_.viewer = [TGViewerPosition viewerWithLatitude:23.58 longitude:120.95 zoom:1];

 

mapView_.settings.scrollGestures = YES;  //可否平移地圖

}

回到上方