2012-01-02 8 views
2

私はIOSの地図上のボタンを追加したいSDK IOSのボタンを通じてマップ上のズームアウトでズームを見せたい 2>ボタン 任意のデモまたはに関連した任意のコードを指定してくださいズームアウトこれです。ズームアウトのために同様には、ボタンでのMapView 1>ズームSDK

-(void)zoomInMap 
{ 
region.span.latitudeDelta = region.span.latitudeDelta/2 ; 
    region.span.longitudeDelta = region.span.longitudeDelta/2; 



    region.center.latitude = mapView.centerCoordinate.latitude ; 
    region.center.longitude = mapView.centerCoordinate.longitude ; 
    [mapView setRegion:region animated:YES]; 
} 

にズームするための

答えて

関連する問題