[ios] Fixed issues with Panoramax button not working as intented

Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
Yannik Bloscheck
2025-06-23 20:53:18 +02:00
committed by Konstantin Pastbin
parent b4f115a8fa
commit a985bf8349
2 changed files with 4 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ constexpr string_view kUrlTwitter{"https://twitter.com/"};
constexpr string_view kUrlVk{"https://vk.com/"};
constexpr string_view kUrlLine{"https://line.me/R/ti/p/@"};
constexpr string_view kUrlBluesky{"https://bsky.app/profile/"};
constexpr string_view kUrlPanoramax{"https://api.panoramax.xyz/?pic="};
constexpr string_view kHttp{"http://"};
constexpr string_view kHttps{"https://"};
@@ -673,6 +674,8 @@ string socialContactToURL(MapObject::MetadataID metaID, string_view value)
return string{kUrlLine}.append(value);
else // 'value' is an URL.
return string{kHttps}.append(value);
case MapObject::MetadataID::FMD_PANORAMAX:
return string{kUrlPanoramax}.append(value);
default:
return string{value};
}

View File

@@ -365,7 +365,7 @@ class PlacePageInfoViewController: UIViewController {
}
if let panoramax = placePageInfoData.panoramax {
panoramaxView = createInfoItem(panoramax,
panoramaxView = createInfoItem(L("panoramax"),
icon: UIImage(named: "ic_placepage_panoramax"),
style: .link,
tapHandler: { [weak self] in