The map component also broadcasts four notifications - MapViewDidLoad, MapTimeExtentChanged, MapDidEndPanning and MapDidEndZooming. Observers interested in these notifications can register for them using the default NSNotificationCenter.
//add this code line in your viewDidLoad or mapViewDidLoad [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(respondToZoom name:@MapDidEndZooming object:nil]; //add this to your .m file - (void)respondToZoom:(NSNotification*)notification { NSLog(@map scale: %.6f,self.mapView.mapScale); }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.