diff --git a/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePageInfoData.h b/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePageInfoData.h index b13a99a62c..93bed7d79c 100644 --- a/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePageInfoData.h +++ b/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePageInfoData.h @@ -34,6 +34,7 @@ NS_ASSUME_NONNULL_BEGIN @property(nonatomic, readonly, nullable) NSString *websiteMenu; @property(nonatomic, readonly, nullable) NSString *selfService; @property(nonatomic, readonly, nullable) NSString *outdoorSeating; +@property(nonatomic, readonly, nullable) NSString *network; @end diff --git a/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePageInfoData.mm b/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePageInfoData.mm index 5fa65ac321..7f349ffa7b 100644 --- a/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePageInfoData.mm +++ b/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePageInfoData.mm @@ -95,6 +95,7 @@ NSString * GetLocalizedMetadataValueString(MapObject::MetadataID metaID, std::st if (value == "yes") _outdoorSeating = NSLocalizedString(@"outdoor_seating", nil); break; + case MetadataID::FMD_NETWORK: _network = [NSString stringWithFormat:NSLocalizedString(@"network", nil), ToNSString(value)]; break; default: break; } diff --git a/iphone/Maps/Images.xcassets/Place Page/ic_placepage_network.imageset/Contents.json b/iphone/Maps/Images.xcassets/Place Page/ic_placepage_network.imageset/Contents.json new file mode 100644 index 0000000000..69bc544ada --- /dev/null +++ b/iphone/Maps/Images.xcassets/Place Page/ic_placepage_network.imageset/Contents.json @@ -0,0 +1,24 @@ +{ + "images" : [ + { + "filename" : "ic_network_white.svg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "template-rendering-intent" : "template" + } +} diff --git a/iphone/Maps/Images.xcassets/Place Page/ic_placepage_network.imageset/ic_network_white.svg b/iphone/Maps/Images.xcassets/Place Page/ic_placepage_network.imageset/ic_network_white.svg new file mode 100644 index 0000000000..f41eb0c1cc --- /dev/null +++ b/iphone/Maps/Images.xcassets/Place Page/ic_placepage_network.imageset/ic_network_white.svg @@ -0,0 +1,4 @@ + + + + diff --git a/iphone/Maps/UI/PlacePage/Components/PlacePageInfoViewController.swift b/iphone/Maps/UI/PlacePage/Components/PlacePageInfoViewController.swift index 3481eb7c55..f913a56ac2 100644 --- a/iphone/Maps/UI/PlacePage/Components/PlacePageInfoViewController.swift +++ b/iphone/Maps/UI/PlacePage/Components/PlacePageInfoViewController.swift @@ -130,6 +130,7 @@ class PlacePageInfoViewController: UIViewController { private var selfServiceView: InfoItemViewController? private var outdoorSeatingView: InfoItemViewController? private var driveThroughView: InfoItemViewController? + private var networkView: InfoItemViewController? var placePageInfoData: PlacePageInfoData! weak var delegate: PlacePageInfoViewControllerDelegate? @@ -183,6 +184,10 @@ class PlacePageInfoViewController: UIViewController { if let ppOperator = placePageInfoData.ppOperator { operatorView = createInfoItem(ppOperator, icon: UIImage(named: "ic_placepage_operator")) } + + if let network = placePageInfoData.network { + networkView = createInfoItem(network, icon: UIImage(named: "ic_placepage_network")) + } if let website = placePageInfoData.website { // Strip website url only when the value is displayed, to avoid issues when it's opened or edited.