mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Make ASMapNode vend its annotations
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
_needsMapReloadOnBoundsChange = YES;
|
||||
_liveMap = NO;
|
||||
_centerCoordinateOfMap = kCLLocationCoordinate2DInvalid;
|
||||
_annotations = @[];
|
||||
return self;
|
||||
}
|
||||
|
||||
@@ -251,8 +252,18 @@
|
||||
_mapView = nil;
|
||||
}
|
||||
|
||||
- (NSArray *)annotations
|
||||
{
|
||||
ASDN::MutexLocker l(_propertyLock);
|
||||
return _annotations;
|
||||
}
|
||||
|
||||
- (void)setAnnotations:(NSArray *)annotations
|
||||
{
|
||||
if (annotations == nil) {
|
||||
annotations = @[];
|
||||
}
|
||||
|
||||
ASDN::MutexLocker l(_propertyLock);
|
||||
_annotations = [annotations copy];
|
||||
if (self.isLiveMap) {
|
||||
|
||||
Reference in New Issue
Block a user