ios - WhirlyGlobe initial rotation is offset -
when initialise , show whirlyglobe in swift app, rotation offset 90 degrees, showing globe on it's side.
i start off north-south orientation. know how fix this?
you can use – animatetoposition:time: once have globe or map setup. suggest having delay before executing method after setting globe. example in objective-c:
// code 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]; }); 
Comments
Post a Comment