forked from organicmaps/organicmaps
[ios] Added show node support.
This commit is contained in:
parent
0b31cdfa13
commit
508ac2458f
6 changed files with 13 additions and 7 deletions
|
@ -497,8 +497,13 @@ using namespace storage;
|
|||
|
||||
- (void)showNode:(storage::TCountryId const &)countryId
|
||||
{
|
||||
[MapsAppDelegate showNode:countryId];
|
||||
[Statistics logEvent:kStatDownloaderMapAction
|
||||
withParameters:@{
|
||||
kStatAction : kStatExplore,
|
||||
kStatFrom : kStatDownloader,
|
||||
}];
|
||||
[self.navigationController popToRootViewControllerAnimated:YES];
|
||||
[MWMStorage showNode:countryId];
|
||||
}
|
||||
|
||||
#pragma mark - Managing the Status Bar
|
||||
|
|
|
@ -32,7 +32,6 @@ typedef NS_ENUM(NSUInteger, MWMRoutingPlaneMode)
|
|||
@property (nonatomic, readonly) LocationManager * m_locationManager;
|
||||
|
||||
+ (MapsAppDelegate *)theApp;
|
||||
+ (void)showNode:(storage::TCountryId const &)countryId;
|
||||
|
||||
- (void)enableStandby;
|
||||
- (void)disableStandby;
|
||||
|
|
|
@ -117,11 +117,6 @@ using namespace osm_auth_ios;
|
|||
return (MapsAppDelegate *)[UIApplication sharedApplication].delegate;
|
||||
}
|
||||
|
||||
+ (void)showNode:(storage::TCountryId const &)countryId
|
||||
{
|
||||
// TODO (igrechuhin) Add implementation
|
||||
}
|
||||
|
||||
#pragma mark - Notifications
|
||||
|
||||
- (void)registerNotifications:(UIApplication *)application launchOptions:(NSDictionary *)launchOptions
|
||||
|
|
|
@ -9,5 +9,6 @@
|
|||
+ (void)updateNode:(storage::TCountryId const &)countryId alertController:(MWMAlertViewController *)alertController;
|
||||
+ (void)deleteNode:(storage::TCountryId const &)countryId alertController:(MWMAlertViewController *)alertController;
|
||||
+ (void)cancelDownloadNode:(storage::TCountryId const &)countryId;
|
||||
+ (void)showNode:(storage::TCountryId const &)countryId;
|
||||
|
||||
@end
|
||||
|
|
|
@ -51,6 +51,11 @@
|
|||
GetFramework().Storage().CancelDownloadNode(countryId);
|
||||
}
|
||||
|
||||
+ (void)showNode:(storage::TCountryId const &)countryId
|
||||
{
|
||||
GetFramework().ShowNode(countryId);
|
||||
}
|
||||
|
||||
+ (void)countryId:(storage::TCountryId const &)countryId alertController:(MWMAlertViewController *)alertController performAction:(TMWMVoidBlock)action
|
||||
{
|
||||
switch (Platform::ConnectionStatus())
|
||||
|
|
|
@ -69,6 +69,7 @@ static NSString * const kStatError = @"Error";
|
|||
static NSString * const kStatExpand = @"Expand";
|
||||
static NSString * const kStatExpandCategory = @"Expand category";
|
||||
static NSString * const kStatExpandLargeCountry = @"Expand large country";
|
||||
static NSString * const kStatExplore = @"Explore";
|
||||
static NSString * const kStatExport = @"Export";
|
||||
static NSString * const kStatFacebook = @"Facebook";
|
||||
static NSString * const kStatFrom = @"from";
|
||||
|
|
Loading…
Add table
Reference in a new issue