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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -