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); }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.