summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-01 15:02:16 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-01 17:37:01 -0700
commit574dd144208466b9ed3c2e8bd102e04d833f6818 (patch)
treeb7326211aed7a63b6ad7b9f3ab9698ba92e89b53 /platform
parent0fba70d5a8465499b0dce900e5aa74f7189e4594 (diff)
downloadqtlocation-mapboxgl-574dd144208466b9ed3c2e8bd102e04d833f6818.tar.gz
[ios, osx] Add an assertion to -[MGLMultiPoint annotationObjectWithDelegate:]
Diffstat (limited to 'platform')
-rw-r--r--platform/darwin/src/MGLMultiPoint.mm5
1 files changed, 5 insertions, 0 deletions
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 <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 = %@>",