Monday, December 18, 2017

Googlemaps showing “offmap” area when GMSCameraPosition set too far north

Leave a Comment

I am positioning a GMSMapView using GMSCameraPosition like this:

GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:myLat longitude:myLon zoom:0.0f];  mapView = [GMSMapView mapWithFrame:myScreenRect camera:camera]; 

But if the latitude (myLat) is too high (too far north) and the zoom is fixed to 0, then the map shows a grey-ish "offmap" area at the top, as per the image below.

Does anyone know how to adjust the latitude value (sufficiently downwards) so that this "offmap" area does not show, while still keeping zoom = 0?

I'm using the iOS Googlemaps SDK.

Thanks in advance.

enter image description here

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment