diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2016-07-25 11:45:27 -0700 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2016-07-25 17:11:14 -0700 |
commit | 4e61b2e506f31682d67708832d409d38a7cb6ac0 (patch) | |
tree | 2c4d872e7c706e777c17c63dbee38c1b001f15f7 /platform/ios/app | |
parent | 8cfaac11fdd49b869144fb51d1a591034d01c471 (diff) | |
download | qtlocation-mapboxgl-4e61b2e506f31682d67708832d409d38a7cb6ac0.tar.gz |
codify implicit assumption about marker-providing delegate method precedence
Diffstat (limited to 'platform/ios/app')
-rw-r--r-- | platform/ios/app/MBXViewController.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m index 5176692e1d..ef91c847be 100644 --- a/platform/ios/app/MBXViewController.m +++ b/platform/ios/app/MBXViewController.m @@ -639,6 +639,8 @@ static NSString * const MBXViewControllerAnnotationViewReuseIdentifer = @"MBXVie return nil; // use default marker } + NSAssert([annotation isKindOfClass:[MBXSpriteBackedAnnotation class]], @"Annotations should be sprite-backed."); + NSString *title = [(MGLPointAnnotation *)annotation title]; if (!title.length) return nil; NSString *lastTwoCharacters = [title substringFromIndex:title.length - 2]; |