IOS Google Maps Get NorthEast and SouthWest Lat Long padded by certain size -


i able ne , sw lat long this.

bounds_ = [[gmscoordinatebounds alloc] initwithregion:mapview_.projection.visibleregion];  cllocationcoordinate2d southwest = cllocationcoordinate2dmake(bounds_.southwest.latitude, bounds_.southwest.longitude);  cllocationcoordinate2d northeast = cllocationcoordinate2dmake(bounds_.northeast.latitude,bounds_.northeast.longitude); 

how can pad northeast , southwest lat long 25% can pass padded coordinates api , image bigger screen view area.

you might want change zoom level of mapview camera.

sample objective-c code:

[mapview_ animatetozoom:12]; 

for more information, can read the zoom section of google maps ios page.


Comments

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -