Friday, 15 February 2013

iOS MapKit get actual visible area of MKMapView when mapView is 3D -



iOS MapKit get actual visible area of MKMapView when mapView is 3D -

i've tried next actual visible area of mkmapview after part change. none produce desired result after user rotates map.

use mapview.bounds , mapview.convertpoint ne , sw cllocationcoordinate2d. use mapview.visiblerect create ne , sw mkmappoints , convert points ne , sw cllocationcoordinate2d. use mapview.centercoodinate , mapview.region.span latitude , longitude delta calculate ne , sw latitude , longitude, used new ne , sw cllocationcoordinate2d.

#1 , #2 come post, , 3 work plenty until user rotates map, brings mapview.camera play changing heading. 1 time happens, mapview.visiblerect not match actual visible area. i'm sure changing height , pitch have similar issues. understand why properties on mkmapview don't create sense 1 time goes 3d, don't know how business relationship mapview.camera. there mention of in comment on 1 of proposed answers in this post, no solution provided.

my question is, how can area that's actually visible user, through mapview.camera, accounting heading, height , pitch?

ios mkmapview

No comments:

Post a Comment