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); }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.