What I've done is catch the zoom event [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(respondToZoom name:@MapDidEndZooming object:nil];and reset the scale if it's too low- (void)respondToZoom:(NSNotification*)notification { self.scale = self.mapView.mapScale; if (self.scale < 500) { // zoom out AGSEnvelope *e = self.mapView.visibleArea.envelope; AGSPoint *pt = e.center; [self.mapView zoomToScale:500 withCenterPoint:pt animated:YES]; }}
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.