neilang / NAMapKit

Allows you to use custom maps in iphone applications and attempts to mimics some of the behaviour of the MapKit framework
MIT License
263 stars 52 forks source link

minimize the map view once the page loaded #53

Closed saran-metron closed 8 years ago

saran-metron commented 8 years ago

how to minimize the map view .i want to make the minimize the zoom level of map when the view was loaded

dblock commented 8 years ago

Are you looking for setZoomScale?

Here's how the map zooms to fit: https://github.com/neilang/NAMapKit/blob/dd8ab2134aec272d61dfa3a33832da98a6d988d1/NAMapKit/NATiledImageMapView.m#L80?

- (void)zoomToFit:(BOOL)animate
{
    [self setZoomScale:self.minimumZoomScale animated:animate];
}

If that's it, would appreciate a PR for expanding on the documentation.

orta commented 8 years ago

Closing due to lack of a response, and this seems like the right answer.