圖窗改變事件

圖窗改變事件

圖窗移動觸發事件,於圖窗位置改變時觸發,圖窗改變事件程式範例說明如下:

- (void)mapView:(TGMapView *)mapView

didChangeViewerPosition:(TGViewerPosition *)position  //當圖窗畫面變動時觸發事件

{

NSString * txt = @"ChangeViewer: Zoom = %f , Target = %f,%f";

txt = [NSString stringWithFormat:txt,position.zoom,position.target.latitude,position.target.longitude];

[self setLabelTxt:txt];

NSLog(@"%@",txt);

}

 

回到上方