ios - WhirlyGlobe initial rotation is offset -


when initialise , show whirlyglobe in swift app, rotation offset 90 degrees, showing globe on it's side.

whirly screenshot

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

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -