[ios, osx] Add an assertion to -[MGLMultiPoint annotationObjectWithDelegate:]

This commit is contained in:
John Firebaugh
2016-06-01 15:02:16 -07:00
parent 0fba70d5a8
commit 574dd14420

View File

@@ -103,6 +103,11 @@ mbgl::Color MGLColorObjectFromCGColorRef(CGColorRef cgColor) {
return MGLLatLngBoundsFromCoordinateBounds(_bounds).intersects(MGLLatLngBoundsFromCoordinateBounds(overlayBounds));
}
- (mbgl::Annotation)annotationObjectWithDelegate:(__unused id <MGLMultiPointDelegate>)delegate {
NSAssert(NO, @"Cannot add an annotation from an instance of %@", NSStringFromClass([self class]));
return mbgl::SymbolAnnotation({mbgl::Point<double>()});
}
- (NSString *)description
{
return [NSString stringWithFormat:@"<%@: %p; count = %lu; bounds = %@>",