2017-04-07 78 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]; 
     });