From 574dd144208466b9ed3c2e8bd102e04d833f6818 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 1 Jun 2016 15:02:16 -0700 Subject: [ios, osx] Add an assertion to -[MGLMultiPoint annotationObjectWithDelegate:] --- platform/darwin/src/MGLMultiPoint.mm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'platform/darwin') diff --git a/platform/darwin/src/MGLMultiPoint.mm b/platform/darwin/src/MGLMultiPoint.mm index b75cd68e7b..6084535d05 100644 --- a/platform/darwin/src/MGLMultiPoint.mm +++ b/platform/darwin/src/MGLMultiPoint.mm @@ -103,6 +103,11 @@ mbgl::Color MGLColorObjectFromCGColorRef(CGColorRef cgColor) { return MGLLatLngBoundsFromCoordinateBounds(_bounds).intersects(MGLLatLngBoundsFromCoordinateBounds(overlayBounds)); } +- (mbgl::Annotation)annotationObjectWithDelegate:(__unused id )delegate { + NSAssert(NO, @"Cannot add an annotation from an instance of %@", NSStringFromClass([self class])); + return mbgl::SymbolAnnotation({mbgl::Point()}); +} + - (NSString *)description { return [NSString stringWithFormat:@"<%@: %p; count = %lu; bounds = %@>", -- cgit v1.2.1