ebrightc

map zoomed notification

Discussion created by ebrightc on Apr 23, 2011
Latest reply on Apr 28, 2011 by jamesrichards
I am trying to get a notification message for when the map has zoomed, to then fire off another method to do something. I read in the API docs that there is a notification sent out from AGSMapView for "MapDidEndZooming":

"The map component broadcasts four notifications - MapViewDidLoad, MapTimeExtentChanged, MapDidEndPanning and MapDidEndZooming. Observers interested in these notifications can register for them using the default NSNotificationCenter."

I have tried this in my viewController implementation:

self.mapView.layerDelegate = self;
[[NSNotificationCenter defaultCenter] addObserver:self   selector:@selector(didReceiveZoomMessage: ) name:MapDidEndZooming object:nil];

but I keep getting error stating the "MapDidEndZooming" is undeclared.

Outcomes