diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2015-07-07 09:16:20 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-07-08 19:46:04 +0200 |
commit | fb230dda51721842036bb9102168e99ed2251f91 (patch) | |
tree | 07232f48ba2345a4a2671aa6f2321c8465ddb0e7 /platform/ios | |
parent | c7011345c9e24eea7a3bad094f4aa48a638e1509 (diff) | |
download | qtlocation-mapboxgl-fb230dda51721842036bb9102168e99ed2251f91.tar.gz |
clean up remainder of sprite removal for now
Diffstat (limited to 'platform/ios')
-rw-r--r-- | platform/ios/MGLMapView.mm | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index b956950c76..6f6a6d9ae1 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -1958,15 +1958,12 @@ CLLocationCoordinate2D MGLLocationCoordinate2DFromLatLng(mbgl::LatLng latLng) std::vector<uint32_t> annotationIDsToRemove; annotationIDsToRemove.reserve(annotations.count); - NSMutableSet *affectedSymbols = [NSMutableSet set]; - for (id <MGLAnnotation> annotation in annotations) { assert([annotation conformsToProtocol:@protocol(MGLAnnotation)]); NSDictionary *infoDictionary = [self.annotationIDsByAnnotation objectForKey:annotation]; annotationIDsToRemove.push_back([[infoDictionary objectForKey:MGLAnnotationIDKey] unsignedIntValue]); - [affectedSymbols addObject:[infoDictionary objectForKey:MGLAnnotationSymbolKey]]; [self.annotationIDsByAnnotation removeObjectForKey:annotation]; @@ -1977,22 +1974,6 @@ CLLocationCoordinate2D MGLLocationCoordinate2DFromLatLng(mbgl::LatLng latLng) } _mbglMap->removeAnnotations(annotationIDsToRemove); - -// NSArray *symbolsInUse = (self.annotationIDsByAnnotation.count ? -// [self.annotationIDsByAnnotation valueForKey:MGLAnnotationSymbolKey] : -// @[]); -// NSSet *uniqueSymbolsInUse = [NSSet setWithArray:symbolsInUse]; -// -// for (NSString *symbol in affectedSymbols) -// { -// if ([symbol length] && ! [uniqueSymbolsInUse containsObject:symbol]) -// { -// std::string sprite([symbol UTF8String]); -// _mbglMap->removeSprite(sprite); -// -// NSLog(@"cleaned up sprite %s", sprite.c_str()); -// } -// } } - (MGLAnnotationImage *)dequeueReusableAnnotationImageWithIdentifier:(NSString *)identifier |