This repository was archived by the owner on Aug 8, 2023. It is now read-only.
File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -345,10 +345,6 @@ IB_DESIGNABLE
345
345
346
346
/* * @name Managing the Display of Annotations */
347
347
348
- /* * Returns the style's symbol name to use for the marker for the specified point annotation object.
349
- * @param mapView The map view that requested the annotation symbol name.
350
- * @param annotation The object representing the annotation that is about to be displayed.
351
- * @return The marker symbol to display for the specified annotation or `nil` if you want to display the default symbol. */
352
348
- (nullable NSString *)mapView : (MGLMapView *)mapView symbolNameForAnnotation : (id <MGLAnnotation>)annotation __attribute__((unavailable(" Use -mapView:imageForAnnotation:." )));
353
349
354
350
/* * Returns an image object to use for the marker for the specified point annotation object.
Original file line number Diff line number Diff line change @@ -455,6 +455,14 @@ - (void)setDelegate:(nullable id<MGLMapViewDelegate>)delegate
455
455
if (_delegate == delegate) return ;
456
456
457
457
_delegate = delegate;
458
+
459
+ if ([delegate respondsToSelector: @selector (mapView:symbolNameForAnnotation: )])
460
+ {
461
+ [NSException raise :@" Method unavailable" format:
462
+ @" -mapView:symbolNameForAnnotation: has been removed from the MGLMapViewDelegate protocol, but %@ still implements it. "
463
+ @" Implement -[%@ mapView:imageForAnnotation:] instead." ,
464
+ NSStringFromClass ([delegate class ]), NSStringFromClass([delegate class ])];
465
+ }
458
466
}
459
467
460
468
#pragma mark - Layout -
You can’t perform that action at this time.
0 commit comments