2013-08-16 39 views

回答

1
#define MERCATOR_RADIUS 85445659.44705395 

-(int) Mapzoomlevel { 

    return 21- round(log2(self.mapView.region.span.longitudeDelta * 
          MERCATOR_RADIUS * M_PI/(180.0 * self.mapView.bounds.size.width))); 

} 

-(void)zoom_level_in_floatvalue { 

    NSLog(@"%f",[self Mapzoomlevel]); 

}