How can I control Google Map's GMSMapView animated layer on iOS?

78 Views Asked by At

I have a GMSMapView view in my UIViewController view hierarchy. When I click a button to change the size of the whole layout, both my layout and GMSMapView animate their layers. However, it seems that the map layer of GMSMapView is animating with a different speed than other content like the Google Maps logo. This creates a visible empty space temporarily at the bottom/at the top until the animations finish, which is ugly. Is there any way to control the animation speed of this layer inside of GMSMapView?

enter image description here

1

There are 1 best solutions below

0
Grzegorz Adam Hankiewicz On

While not a direct answer to the animation problem, in version 8.3.0 the GMSMapView can be initialised with a GMSMapViewOptions.backgroundColor. This allows me to hide the ugly UIColor.lightGray default and makes the animation glitch less perceptible.