2017-04-07 67 views
0

當我初始化並在我的Swift應用中顯示Whirlyglobe時,旋轉偏移了90度,總是在其一側顯示地球。WhirlyGlobe初始旋轉偏移

Whirly screenshot

我想與南北走向的開始。 有誰知道如何解決這個問題?

回答

0

您可以使用– animateToPosition:time:一旦你有你的地球儀或地圖的設置。我建議有設置你的地球后,在執行此方法之前的延遲。 例如在Objective-C中:

// Your code to setup WhirlyGlobeViewController... 

dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.000001 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ 
     MaplyCoordinate coords = MaplyCoordinateMakeWithDegrees(0, 0); 
     [self.globe animateToPosition:coords height:2.0 heading:0 time:1]; 
     });