Post not yet marked as solved
Post marked as unsolved with 2 replies, 779 views
Togther with MKMapSnapshotter, Mapkit provides all the tools to create animations, respectively image sequences.For example:https://youtu.be/yub8oVTA2fwFor this example the heading property of the mkMapCamera was animated. The movementof the camera looks smooth. (That's fine)In the next example the MKMapView.centerCoordinate was animated.https://youtu.be/QY7Pmg5oE2MYou may have noticed the jumps during the movement of the camera. (That's bad)The MKMapView.camera gets automatic updates.(Animation of the MKMapCamera.centercoordinate directlyhas the same effect) The jumps may rely on the MKMapCamera.altitude property. Because every change in centercoordinate the altitude of the camera is also updated.Altitude is defined as meters above ground and consequently the camera seems to follow the mapssurface. Interestingly, if the animation is made with mapkits own animator, it ispossible to move from A to B without height-changes.https://youtu.be/x7SzU20BJPM(The example was made with a NSView-Screencapture)Unfortunately the snapshotter cannot be used to get the frames because the camera is updated during snapshot-options preparation. This causes (?)also a correction (or reset) of the altitude property and thus the jump in the animation.So here is my question/suggestion.Would it be nice to have a MKMapCamera.aboveMeanSeaLevel property?Is there a workaround to get a moving camera in altitude above sea-level, i.esuppressing the altitude update?Thanks for any suggestions!