地圖手指拖曳縮放

地圖手指拖曳縮放設定

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

- (void)loadView

{

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

self.view =  mapView_;

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

 

mapView_.settings.zoomGestures = YES;  //可否縮放地圖

}

回到上方