0
A
回答
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];
});